Martin786843 Posted April 10, 2020 Share Posted April 10, 2020 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) Insert image from URL Link to comment
^iiEcoo'x_) Posted April 12, 2020 Share Posted April 12, 2020 you can't check from numbers . if ( 519 ) then , false if ( Value == 519 ) then , true or from function return a number if ( function ( ) == 519 ) then , true 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