Snakegold Posted July 28, 2018 Share 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?? Link to comment
Erknneto Posted July 28, 2018 Share Posted July 28, 2018 function ejectPlayer (source) if ( isPedInVehicle(source) ) then removePedFromVehicle(source) return end end addCommandHandler("eject",ejectPlayer) Try this code. Link to comment
Snakegold Posted July 28, 2018 Author Share Posted July 28, 2018 yes working but why you used return ?? Link to comment
Erknneto Posted July 28, 2018 Share 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! 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