Guys i have made this code to make non vips players can't enter hydra
vipVehicles = { [520]=true }
local cuenta = getAccountName( getPlayerAccount(thePlayer) )
if isObjectInACLGroup("user."..cuenta, aclGetGroup("VIP")) then --Group VIP
spaces(thePlayer)
function onVehicleStartEnter ( enteringPlayer, seat, jacked, door )
outputChatBox ( "● You must be vip to enter this vehicle", thePlayer, 0, 255, 0 ) -- and tell the player why
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), onVehicleStartEnter )
What is wrong with it ?