Gameraap Posted September 19, 2010 Share Posted September 19, 2010 (edited) Fixed Edited September 19, 2010 by Guest Link to comment
Castillo Posted September 19, 2010 Share Posted September 19, 2010 you failed while adding event handler, you put OnPlayerVehicleEnter and must be onPlayerVehicleEnter. Link to comment
Gameraap Posted September 19, 2010 Author Share Posted September 19, 2010 you failed while adding event handler, you put OnPlayerVehicleEnter and must be onPlayerVehicleEnter. Thx! Link to comment
Gameraap Posted September 19, 2010 Author Share Posted September 19, 2010 (edited) Fixed Edited September 19, 2010 by Guest Link to comment
12p Posted September 19, 2010 Share Posted September 19, 2010 Don't double post! And it's okay. Link to comment
Gameraap Posted September 19, 2010 Author Share Posted September 19, 2010 Don't double post! And it's okay. Its not a double post! And the script is not ok Link to comment
dzek (varez) Posted September 19, 2010 Share Posted September 19, 2010 https://wiki.multitheftauto.com/wiki/OnPlayerVehicleExit check 1st argument, and use it, instead of getting ped occupied veh. Link to comment
Gameraap Posted September 20, 2010 Author Share Posted September 20, 2010 (edited) Whats wrong here? Fixed! Edited September 21, 2010 by Guest Link to comment
Discord Moderators Zango Posted September 20, 2010 Discord Moderators Share Posted September 20, 2010 Whats wrong here? function outcar ( ) theVehicle = getPedOccupiedVehicle ( source ) if ( theVehicle ) then if isVehicleLocked ( theVehicle ) then setVehicleLocked ( theVehicle , false ) outputChatBox ( "#C6FE0D[unlock] Your car has been unlocked",source, 255, 255, 255, true ) else outputChatBox ( "#C6FE0D[unlock] Failed Your car was already unlocked",source, 255, 255, 255, true ) end end end addEventHandler ( "onPlayerVehicleExit", getRootElement(), outcar ) I don't understand the logic here, you check if a dude is in a vehicle on vehicle exit? It's like checking if your pet is floating in your bathtub while you're holding it Link to comment
Gameraap Posted September 20, 2010 Author Share Posted September 20, 2010 (edited) I want check when you leave your car and the lock is of. than he say: outputChatBox ( "#C6FE0D[unlock] Failed Your car was already unlocked",source, 255, 255, 255, true ) but when the lock was on he say outputChatBox ( "#C6FE0D[unlock] Your car has been unlocked",source, 255, 255, 255, true ) Edited September 21, 2010 by Guest Link to comment
dzek (varez) Posted September 20, 2010 Share Posted September 20, 2010 I Hate when i have to quite myself again, because some ignorant is ignoring my answer to his problems... https://wiki.multitheftauto.com/wiki/OnPlayerVehicleExitcheck 1st argument, and use it, instead of getting ped occupied veh. Link to comment
Towncivilian Posted September 20, 2010 Share Posted September 20, 2010 Gameraap, why did you remove your earlier posts' contents? Please don't do that in the future. Somebody else may have the same issue in the future and wouldn't be able to search for it. 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