Stranger Posted September 25, 2013 Posted September 25, 2013 how to 'cancelEvent', if the person above the vehicle ? i mean if he tried to press the button, say " you should be on the ground " to do this
Alexs Posted September 25, 2013 Posted September 25, 2013 Use 'isPedInVehicle' or 'getPedOccupiedVehicle'. Developer @ MYVAL
Dealman Posted September 25, 2013 Posted September 25, 2013 Can use above as well as this; isPedOnGround Learning how to use and search the MTA Wiki would help yourself, since you wouldn't have to ask such questions. And will speed up the development of your project quite significantly instead of relying on us to find it for you If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
Moderators IIYAMA Posted September 25, 2013 Moderators Posted September 25, 2013 https://wiki.multitheftauto.com/wiki/Ge ... actElement When a player is at the roof/(or what ever) of a vehicle. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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