Sign in to follow this  

Check ACL on driver seat.

Recommended Posts

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? 

Share this post

Link to post


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: ", thePlayer, 0, 220, 0)


  • Thanks 1

Share this post

Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.