DarkLink Posted June 27, 2011 Share Posted June 27, 2011 Hey there guys, I am having some problem here.. I want to set a player locked in a vehicle, so he cant exit. Which function should I use to do that? Is there any option beside.. onExitVehicle, then cancelEvent ? Thanks! Link to comment
Castillo Posted June 27, 2011 Share Posted June 27, 2011 https://wiki.multitheftauto.com/wiki/SetControlState set "enter_exit" to false. Link to comment
DarkLink Posted June 27, 2011 Author Share Posted June 27, 2011 https://wiki.multitheftauto.com/wiki/SetControlStateset "enter_exit" to false. thanks alot, its exactly what I was looking for ;D ty Link to comment
DarkLink Posted June 27, 2011 Author Share Posted June 27, 2011 I tryed like u said, but is not working bro I did this: setControlState ( k, "enter_exit", false) EDIT: with toggleControl is working, any problem using this one? on wiki, says that is somekind of problem ? This article needs checking for the following reason: By enabling a control all bindings belonging to it seem to be deleted. (tested clientside) --NeonBlack 16:48, 28 August 2009 (UTC) Link to comment
Castillo Posted June 27, 2011 Share Posted June 27, 2011 Yeah, I think it was toggleControl not setControlState . 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