
Apo
Members-
Posts
141 -
Joined
-
Last visited
Everything posted by Apo
-
hi guys my code is not work please help me if player enter the vehicle id 14 send massage for player no warning no error function vehenter(source,seat) local veh = getPedOccupiedVehicle(source) local vehid= tonumber(getElementData(veh, "id")) if seat == 0 then if dbid == 14 then outputChatBox("welcome armin", source, 255, 0, 0) end end end addEventHandler("onVehicleEnter", getRootElement(), vehenter)
-
hi guys please help me for fix my script if player enter the car id 411 and 602 and 593 if not license remove player in the car function licensecheck(thePlayer) local carlicense = getElementData(thePlayer, "license") local seat = getPedOccupiedVehicleSeat(thePlayer) if (carlicense == 1 ) and (seat==0) then else outputChatBox("You are not a driver license", thePlayer, 255, 0, 0) removePedFromVehicle(thePlayer) local x, y, z = getElementPosition(thePlayer) setElementPosition(thePlayer, x, y, z) return end end addEventHandler("onVehicleEnter", getRootElement(), licensecheck)
-
thank you But I have a problem , If the driver is not in the vehicle and the passenger in the vehicle , vehicle is no damaged plese help me if passanger in the vehicle , vehicle is damaged , i need vehicle Empty = no damaged vehicle no empty = damaged
-
i need help when isVehicleEmpty (not player in the vehicle) vehicle no damged setVehicleDamageProof(theVheicle, true)
-
when no player in the vehicle setVehicleDamageProof(s, true) setElementFrozen(s, true) ?
-
hi guys my script function damageYes (player,vehicle) setVehicleDamageProof(source, false) setElementFrozen(source, false) end addEventHandler("onVehicleEnter", getRootElement(), damageYes) function damageNo (player) setVehicleDamageProof(source, true) setElementFrozen(source, true) end addEventHandler("onVehicleExit", getRootElement(), damageNo) when passngers has left vehicle my vehicle is setVehicleDamageProof(source, true) setElementFrozen(source, true) i need help for fix my script, when passangers exit vehicle my vehicle no god mode and freeze
-
ERROR: mysql\data.lua:120: bad argument #2 to 'mysql_escape_string' (string expected, got nil) ERROR: mysql\data.lua:120: bad argument #2 to 'mysql_escape_string' (string expected, got nil) ERROR: cr\s_cr.lua:58: call: failed to call 'mysql:escape_string' [string "?"] ERROR:cr\s_cr.lua:58: attempt to concatenate a boolean value please help me for fix my error
-
hi guys please help me for learing Compile my resource
-
yes But i need default all vehicle attachElements disable Player misses the roof of the vehicle in each mode the vehicle is moving fast to stay and the roof fall
-
hi I have a problem if the player is on the roof of the vehicle was moving when the player is on the roof of the vehicle remains please help me for disable surf all vehicle
-
help me for my code function vehicledamaged (thePlayer) if isPedInVehicle (thePlayer) then local vehicle = getPedOccupiedVehicle (thePlayer) setVehicleDamageProof (vehicle, false) end end addEventHandler ( "onVehicleEnter", getRootElement(), vehicledamaged ) function vehicleundamaged (thePlayer) if isPedInVehicle (thePlayer) then local vehicle = getPedOccupiedVehicle (thePlayer) setVehicleDamageProof (vehicle, true) fixVehicle (vehicle) end end addEventHandler ( "onVehicleExit", getRootElement(), vehicleundamaged )
-
ty man can you give me resource i am new scripting vehicle undamaged when player no in the vehicle not damaged by weapon , car etc... When the player is in the vehicle car damaged
-
hi guys please help me for make script if player no in the vehilce , vehicle no damaged esle vehicle damaged please give me resource