Maybe above vehicle?
g_P = getLocalPlayer()
rocketTimer = false
function rocket()
if not rocketTimer then
local x,y,z = getElementPosition(g_P)
createProjectile(g_P, 19, x,y,z + 1, 200)
rocketTimer = setTimer(function() rocketTimer = false end, 3000, 1)
else
outputChatBox("You must wait 3 seconds to fire again", 0, 255, 0, true)
end
end
function onResourceStart()
bindKey("lctrl", "down", rocket)
end
addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)