holuzs Posted January 29, 2019 Share Posted January 29, 2019 (edited) function pickedUpTheHiker() local veh = getPedOccupiedVehicle(localPlayer) setPedAnimation(hiker) setPedControlState(hiker, "enter_passenger", true) end The ped stop the anim, but don't in into the nearest vehicle. Edited January 29, 2019 by holuzs Link to comment
Moderators Patrick Posted January 29, 2019 Moderators Share Posted January 29, 2019 Használd a 'enter_exit'-et, mert a 'enter_passenger'-re csak bindet tudsz tenni ami a settingsbe beállított gombhoz "illeszkedik". (Use 'enter_exit', because 'enter_passenger' is an MTA hard-coded command and you can only bind a function to that.) 1 Link to comment
Zorgman Posted January 30, 2019 Share Posted January 30, 2019 Assuming the ped is really a ped, and not a player: peds cannot enter/exit vehicles the normal way. Quote setPedControlState Client-only function This function makes a ped or player press or release a certain control. Note: You can't use enter_exit or enter_passenger on a ped. You'll have to either warp him in the vehicle or script the animations sequence yourself and then warp him in the vehicle. Link to comment
Moderators Patrick Posted January 30, 2019 Moderators Share Posted January 30, 2019 4 minutes ago, Zorgman said: Assuming the ped is really a ped, and not a player: peds cannot enter/exit vehicles the normal way. You'll have to either warp him in the vehicle or script the animations sequence yourself and then warp him in the vehicle. Oh my god... really. 1 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