Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function carRocket()
- if getElementData(localPlayer,"class") == "Shooter" then
- if bindTrigger == 1 then
- if not isPedDead(getLocalPlayer()) then
- local theVehicle = getPedOccupiedVehicle(getLocalPlayer())
- if theVehicle then
- local x,y,z = getElementPosition(theVehicle)
- local rX,rY,rZ = getElementRotation(theVehicle)
- if getElementModel(theVehicle) == 411 then
- createProjectile(theVehicle, 19, x, y , z +0, 500)
- bindTrigger = 0
- setTimer(allowShoots, 3000, 1)
- end
- end
- end
- end
- end
- end
- bindKey("mouse2", "down", carRocket)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement