Jump to content

Prevent player from exitting a vehicle


Feche1320

Recommended Posts

Posted
  
--// Client 
  
addEventHandler("onClientPlayerVehicleExit", getRootElement(), 
function() 
   cancelEvent() 
end) 
  
  
  

It won't work , because this event happen when a player exit a vehicle and it can't be canceled.

Use the code of tosfera , it will work.

A unique GangWar gamemode waiting for you!
Click here for more information.

560x95_FFFFFF_FF9900_000000_000000.png

Posted

No need to use that event anyway, since toggleControl function works fine and this topic is already solved.

Please do not PM me with scripting related question nor support, use the forums instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...