Jump to content

Help createprojectile


Recommended Posts

I do not know if something is missing but the missile does not activate me: Rocket in the shamal from the createprojectile, I do not know if it would be wrong but I pass the file if you can see

 

 


function shootProjectile()
    local vehicle = getPedOccupiedVehicle(localPlayer)
    -- Only create projectile if we are inside a vehicle
    if(519)then
        local x, y, z = getElementPosition(519)
        createProjectile(519, 19, x, y, z)
    end
end

bindKey("Ctrl", "down", shootProjectile)

 

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