ما اشوف انك جرب اصلا -__-",
جرب كذا,
-- Server Side #
addEventHandler("onVehicleStartEnter", root,function(player, seat)
for i,v in pairs(activeVehicles) do
if v == source then
if not getPlayerTeam ( player ) then cancelEvent() end
if not isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)),aclGetGroup('Admin')) then
outputChatBox("This vehicle is only for "..groupName.." Group!", player, 255, 0, 0)
cancelEvent()
if getTeamName( getPlayerTeam( player ) ) ~= 'Police' then
outputChatBox("This vehicle is only for "..groupName.." Group!", player, 255, 0, 0)
cancelEvent()
else
if seat == 0 and occupiedVehicles[i] then
outputChatBox("You cannot take this vehicle as someone in it already!", player, 255, 0, 0)
cancelEvent()
end
end
break
end
end
end
end
)