Jump to content

Bomber script


Xwad

Recommended Posts

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
  
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...