overlocus Posted August 19, 2018 Share Posted August 19, 2018 I just want the cars that a group can drive with Only a VIP can drive this car. Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 19, 2018 Share Posted August 19, 2018 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 1 Link to comment
overlocus Posted August 19, 2018 Author Share Posted August 19, 2018 (edited) 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 August 19, 2018 by overlocus Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 19, 2018 Share Posted August 19, 2018 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 ) 1 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