Snakegold Posted July 28, 2018 Posted July 28, 2018 function removepedfromvehicle ( theVehicle, seat, jacked ) if isPedInVehicle (source) then removePedFromVehicle (source) end end addCommandHandler ("leavecar", removepedfromvehicle ) What is wrong with this code??
Erknneto Posted July 28, 2018 Posted July 28, 2018 function ejectPlayer (source) if ( isPedInVehicle(source) ) then removePedFromVehicle(source) return end end addCommandHandler("eject",ejectPlayer) Try this code.
Erknneto Posted July 28, 2018 Posted July 28, 2018 Oh, sorry! You can ignore that, that is an old code from my resources! You can remove that return if you want!
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