ParadoxTR Posted January 19, 2016 Share Posted January 19, 2016 I want you to get a ped opened the car door. How I do? Link to comment
ParadoxTR Posted January 20, 2016 Author Share Posted January 20, 2016 setPedControlState How can I do? Can you explain a little. Link to comment
knightscript Posted January 20, 2016 Share Posted January 20, 2016 Can you explain better what you want to achieve?. Link to comment
ParadoxTR Posted January 20, 2016 Author Share Posted January 20, 2016 I do it. Ped is not opened the car door. Please example. Link to comment
knightscript Posted January 20, 2016 Share Posted January 20, 2016 What do you want to do?, you want to get who opened the vehicle door? Link to comment
ParadoxTR Posted January 20, 2016 Author Share Posted January 20, 2016 I create a ped. example; Ped = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) I want to this "Ped" is opened the car door. Link to comment
knightscript Posted January 20, 2016 Share Posted January 20, 2016 Well i don´t know if that is possible, but you can warp the ped directly inside a vehicle with this: function warpped( ) local Ped = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) local Vehicle = createVehicle ( 411, 4, 0, 3 ) warpPedIntoVehicle ( Ped, Vehicle ) --you can set the seat where the player would be warped to, example: --warpPedIntoVehicle ( Ped, Vehicle, 0) --Warps the vehicle as the driver end addCommandHandler ( "warp1", warpped) --command EDIT: If you want to warp the ped to your current vehicle, replace local Vehicle = createVehicle ( 411, 4, 0, 3 ) with local Vehicle = getPedOccupiedVehicle (source) I Didn´t test this, if you need more help just reply and I will try my best EDIT: tested: 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