Xeno Posted January 14, 2012 Posted January 14, 2012 How would I check the player would entered the car? Like if you enter as a passenger.
Castillo Posted January 14, 2012 Posted January 14, 2012 addEventHandler("onVehicleEnter",root, function (thePlayer, seat) if (seat ~= 0) then -- If the seat isn't driver's.. outputChatBox("You entered as a passenger.",thePlayer) -- We output him a chatbox message. end end) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Xeno Posted January 14, 2012 Author Posted January 14, 2012 Does seat 0 count as all the passenger seats?
Castillo Posted January 14, 2012 Posted January 14, 2012 Seat 0 = driver seat. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted January 14, 2012 Posted January 14, 2012 You're welcome . San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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