Jump to content

toptional

Members
  • Posts

    493
  • Joined

1 Follower

Recent Profile Visitors

1,218 profile views

toptional's Achievements

Hustler

Hustler (26/54)

0

Reputation

  1. So whats the fix? Must I define thePlayer or something, I'm confused.
  2. Simple short code not working. (Server Sided) function getInterior ( thePlayer ) if ( getElementInterior( thePlayer ) == 0 ) then outputChatBox ( "Yes you are outside ", thePlayer ) else outputChatBox ( "No you aren't outside ", thePlayer ) end end addEventHandler("onResourceStart",getRootElement(),getInterior)
  3. I've ordered a rasberry pi! Can't wait I'm sure you can run an MTA server on it just use the linux server.
  4. Thats a joke right? SSD RAID? 256GB RAM? 24+ Cores.... You must be having a laugh? Not even google uses these kinds of specs! This would cost you probably $5,000 a month! False advertising much? if this was true i'd love to see some proof...
  5. Triple Posting... Seems legit! Dude just get the fudge out of here seriously stop wasting your time
  6. Anyone ever noticed, That all of these shitty hosting companies are run by 1 guy? Shuhanker? He runs delighttechworld also known as Tidewave so many nick names. This is just funny seriously dude.....
  7. Another issue D: It outputs the message 3 times, when you go and get the vehicle fixed. function fixUK ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then local vehicle = getPedOccupiedVehicle ( hitPlayer ) if not ( vehicle ) then outputChatBox ( "You need to be in a vehicle!", 255, 0, 0 ) return end local vehicleHealth = getElementHealth ( vehicle ) if vehicleHealth <= 950 then fadeCamera ( false ) --toggleAllControls ( false ) setElementFrozen ( vehicle, true ) setTimer ( function ( ) fixVehicle ( vehicle ) --toggleAllControls ( true ) setElementFrozen ( vehicle, false ) fadeCamera ( true ) takePlayerMoney(250) outputChatBox ( "Your vehicle was fixed for $250!", 255, 0, 0 ) end , 2000, 1 ) end end end addEventHandler ( "onClientMarkerHit", UKMarker, fixUK ) function fixUSA ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then local vehicle2 = getPedOccupiedVehicle ( hitPlayer ) if not ( vehicle2 ) then outputChatBox ( "You need to be in a vehicle!", 255, 0, 0 ) return end local vehicleHealth2 = getElementHealth ( vehicle2 ) if vehicleHealth2 <= 950 then fadeCamera ( false ) --toggleAllControls ( false ) setElementFrozen ( vehicle2, true ) setTimer ( function ( ) fixVehicle ( vehicle2 ) --toggleAllControls ( true ) setElementFrozen ( vehicle2, false ) fadeCamera ( true ) takePlayerMoney(250) outputChatBox ( "Your vehicle was fixed for $250!", 255, 0, 0 ) end , 2000, 1 ) end end end addEventHandler ( "onClientMarkerHit", USAMarker, fixUSA ) function fixUK ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then local vehicle3 = getPedOccupiedVehicle ( hitPlayer ) if not ( vehicle3 ) then outputChatBox ( "You need to be in a vehicle!", 255, 0, 0 ) return end local vehicleHealth3 = getElementHealth ( vehicle3 ) if vehicleHealth3 <= 950 then fadeCamera ( false ) --toggleAllControls ( false ) setElementFrozen ( vehicle3, true ) setTimer ( function ( ) fixVehicle ( vehicle3 ) --toggleAllControls ( true ) setElementFrozen ( vehicle3, false ) fadeCamera ( true ) takePlayerMoney(250) outputChatBox ( "Your vehicle was fixed for $250!", 255, 0, 0 ) end , 2000, 1 ) end end end addEventHandler ( "onClientMarkerHit", UKMarker, fixUK ) function fixUK ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then local vehicle4 = getPedOccupiedVehicle ( hitPlayer ) if not ( vehicle4 ) then outputChatBox ( "You need to be in a vehicle!", 255, 0, 0 ) return end local vehicleHealth4 = getElementHealth ( vehicle4 ) if vehicleHealth4 <= 950 then fadeCamera ( false ) --toggleAllControls ( false ) setElementFrozen ( vehicle4, true ) setTimer ( function ( ) fixVehicle ( vehicle4 ) --toggleAllControls ( true ) setElementFrozen ( vehicle4, false ) fadeCamera ( true ) takePlayerMoney(250) outputChatBox ( "Your vehicle was fixed for $250!", 255, 0, 0 ) end , 2000, 1 ) end end end addEventHandler ( "onClientMarkerHit", UKMarker, fixUK ) P.S The markers are created before the script don't worry
  8. Thanks you fixed it
  9. I changed that Pre[T]ege, but now it says I need to be in a vehicle when i go through the marker
  10. I get this debug error ERROR: line 18: attempt to compare boolean with number It's supposed to when you enter the marker see if your vehicle health is below 100% if it is, it fixes it, if not it does nothing. UKMarker = createMarker ( -2079.88, 2099.58, 15.5,"cylinder",6.0,255,255,0,125) USAMarker = createMarker (349.18, 2540.00, 15.5,"cylinder",6.0,255,255,0,125) RUSMarker = createMarker ( 2205.92, -219.31, 16.5,"cylinder",6.0,255,255,0,125) GERMarker = createMarker ( -1088.41, -1036.57, 128.25,"cylinder",6.0,255,255,0,125) UKBlip = createBlipAttachedTo ( UKMarker,63, 1,0,0,0,255,0,3000,getRootElement()) USABlip = createBlipAttachedTo ( USAMarker,63, 1,0,0,0,255,0,3000,getRootElement()) RUSBlip = createBlipAttachedTo ( RUSMarker,63, 1,0,0,0,255,0,3000,getRootElement()) GERBlip = createBlipAttachedTo ( GERMarker,63, 1,0,0,0,255,0,3000,getRootElement()) function fixUK ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then if ( getElementType ( hitPlayer ) == "player" ) then local vehicle = getPedOccupiedVehicle ( hitPlayer ) if ( vehicle ) then local vehicleHealth = getElementHealth ( playerVehicle ) if vehicleHealth <= 100 then fadeCamera ( false ) --toggleAllControls ( false ) setElementFrozen ( vehicle, true ) setTimer ( function ( ) fixVehicle ( vehicle ) --toggleAllControls ( true ) setElementFrozen ( vehicle, false ) fadeCamera ( true ) takePlayerMoney(250) outputChatBox ( "Your vehicle was fixed for $250!", 255, 0, 0 ) end , 2000, 1 ) else outputChatBox ( "You need to be in a vehicle!", 255, 0, 0 ) end end end end end addEventHandler ( "onClientMarkerHit", UKMarker, fixUK )
  11. This script is supposed to bassically, it checks if your in a vehicle and if you are it fixes it, if your not in a vehicle it tells you. Problem is i'm in a vehicle and get the message saying I'm not in a vehicle, no debug errors UKMarker = createMarker ( -2079.88, 2099.58, 15.5,"cylinder",7.0,255,255,0,125) function fixUK ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then local vehicle = getPedOccupiedVehicle ( thePlayer ) if vehicle then fixVehicle ( vehicle ) outputChatBox ( "Your vehicle was fixed!", player, 0, 255, 0 ) else outputChatBox ( "You need to be in a vehicle!", player, 255, 0, 0 ) end end end addEventHandler ( "onClientMarkerHit", UKMarker, fixUK )
  12. I suggest thinking of an idea that has never been made in MTA before! Make an original server
×
×
  • Create New...