Xwad Posted April 7, 2015 Share Posted April 7, 2015 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() Link to comment
Xwad Posted April 7, 2015 Author Share Posted April 7, 2015 projectile is 21 not 19!! Link to comment
Et-win Posted April 7, 2015 Share Posted April 7, 2015 function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle)then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 21, x, y, z) unbindKey("vehicle_fire", "down", shootProjectile) setTimer (bindTheKeys , 10000, 1 ) end end function bindTheKeys () bindKey("vehicle_fire", "down", shootProjectile) end bindTheKeys() Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now