Mr. Chip53 Posted November 5, 2017 Share Posted November 5, 2017 I've been trying to code a ped hijacking system for the npc traffic script by CrystalMV. When I run the animation on the ped thats in the car they stay in there seat and dont get thrown out. Does anyone know how to do this? Im posting on my phone so if you want to see my code i can hop on my pc and post it. Link to comment
Moderators IIYAMA Posted November 5, 2017 Moderators Share Posted November 5, 2017 https://wiki.multitheftauto.com/wiki/RemovePedFromVehicle Link to comment
Mr. Chip53 Posted November 5, 2017 Author Share Posted November 5, 2017 Well yes but if you would of read im trying to do some animation work for it to look like the real game. This function teleports the ped outside the car. My current attempts are to freeze the car, grab ped coords, warp ped out, diable ped and car collision, teleport ped back to driver position, run sit animation, run jack animation and it doesnt really work. The ped disappears and the car starts floating up. Link to comment
Moderators IIYAMA Posted November 5, 2017 Moderators Share Posted November 5, 2017 (edited) How about attaching the player and ped to the car while doing the animation? Edited November 5, 2017 by IIYAMA Link to comment
Mr. Chip53 Posted November 5, 2017 Author Share Posted November 5, 2017 I'll try it later and see what i come up with. I will probably upload this project to github for others to use when i figure it out. Link to comment
Moderators IIYAMA Posted November 5, 2017 Moderators Share Posted November 5, 2017 onClientPreRender < (do not use attachElements) 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