maximumdrive Posted November 4, 2018 Share Posted November 4, 2018 (edited) Hi all, there is a well-known function warpPedIntoVehicle() which warps player into the car looking it like it was occupying that for ages. But is there a function which makes ped entering the vehicle in a kind of 'animated' way, as it is when onClientVehicleStartEnter is triggered? Easier to explain: is it possible to force the player/ped to enter a nearby staying vehicle in a normal, non-warping way? Edited November 4, 2018 by maximumdrive Link to comment
Z4Zy Posted November 4, 2018 Share Posted November 4, 2018 This may work setPedControlState(thePlayer,"enter_exit",true) But wiki says, Quote Note: You can't use enter_exit or enter_passenger on a ped. Expand Link to comment
Discord Moderators Megadreams Posted November 5, 2018 Discord Moderators Share Posted November 5, 2018 I did a pull request a while ago that adds this specific feature to MTA. It only works on client-side peds with client-side vehicles for now though. You can check it out here. 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