Hi i have a script that is coded and not working on my hosted server but its working on my homemade server so decided to make a script like that but its bugging..When i want to drop a bomb it does not drop the bomb its blowing up on the plane..Please help! thanks.
function shootProjectile()
local vehicle = getPedOccupiedVehicle(localPlayer)
if(vehicle)then
local x, y, z = getElementPosition(vehicle)
createProjectile(vehicle, 19, x, y, z)
setTimer (bindTheKeys , 10000, 1 )
end
end
function bindTheKeys ()
bindKey("vehicle_fire", "down", shootProjectile)
end
bindTheKeys()