Jump to content

[HELP] ACL CAR SYSTEM


overlocus

Recommended Posts

function enterVehicle (player, seat, jacked)
	local accName = getAccountName (getPlayerAccount (player) 
	if not isObjectInACLGroup("user."..accName, aclGetGroup ( "VIP" )) and getElementModel(source) == 411 then
	    cancelEvent()
		outputChatBox ( "Only VIP Can Enter This Vehicle", player)
	end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )

try this 

20 minutes ago, overlocus said:

I just want the cars that a group can drive with

 

Only a VIP can drive this car.

 

 

you're welcome ;)

 

  • Thanks 1
Link to comment
1 hour ago, Mσнαмα∂ Hєℓιѕн said:

function enterVehicle (player, seat, jacked)
	local accName = getAccountName (getPlayerAccount (player) 
	if not isObjectInACLGroup("user."..accName, aclGetGroup ( "VIP" )) and getElementModel(source) == 411 then
	    cancelEvent()
		outputChatBox ( "Only VIP Can Enter This Vehicle", player)
	end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )

try this 

 

you're welcome ;)

 

how can i add more than one group on this code?  and how can i set vehicle id 

i want only vips can enter the banshee

 

Edited by overlocus
Link to comment
13 hours ago, overlocus said:

how can i add more than one group on this code?  and how can i set vehicle id 

i want only vips can enter the banshee

 

try this :

function enterVehicle (player, seat, jacked)
	local accName = getAccountName (getPlayerAccount (player) 
	if not isObjectInACLGroup("user."..accName, aclGetGroup ( "VIP" )) and getElementModel(source) == 429 then
	    cancelEvent()
		outputChatBox ( "Only VIP Can Enter This Vehicle", player)
	end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )

 

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