Pedro001 Posted May 10, 2019 Share Posted May 10, 2019 Hey guys, how can I check if someone in an ACL is the one trying to get in the driver's seat. so only him could drive this car, but other could seat on the other seats of the vehicle? Link to comment
Jonas^ Posted May 10, 2019 Share Posted May 10, 2019 OnVehicleEnter Check the driver's seat and allow only those in the acl to drive the vehicle. Example: addEventHandler ("onVehicleEnter", root, function (thePlayer, seat, jacked) if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("ACL_NAME")) then if seat == 0 then removePedFromVehicle (thePlayer) outputChatBox ("SEAT: "..seat, thePlayer, 0, 220, 0) end end end) @Pedro001 1 Link to comment
Pedro001 Posted May 10, 2019 Author Share Posted May 10, 2019 Wow! That was fast! hehe, Thank you very much my friend!! 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