johhnhd Posted January 1, 2014 Share Posted January 1, 2014 I have a pilot script but once they leave the plane it will respawn in the spawn point so when another pilot spawns one it spawns ontop of the old one. can someone point me in the direction. Im looking to make one so as soon as the pilot leaves the plane it gets deleted. Link to comment
xXMADEXx Posted January 1, 2014 Share Posted January 1, 2014 use the event onVehicleExit, and then destroyElement Link to comment
johhnhd Posted January 1, 2014 Author Share Posted January 1, 2014 function removebeagle ( thePlayer, seat, jacked ) if ( getElementModel ( source ) == 511 ) then destroyElement ( source ) end end addEventHandler ( "onVehicleExit", getRootElement(), removebeagle ) 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