Jump to content

Check ACL on driver seat.


Recommended Posts

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

  • Thanks 1
Link to comment

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...