policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة
function enterVehicle(player)
local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player))
if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then
removePedFromVehicle(player)
outputChatBox("Only policeman can enter police cars!", player)
end
end
addEventHandler("onVehicleEnter", root, enterVehicle)
وين احط القوس
policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة
function enterVehicle(player)
(local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player))
if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then
removePedFromVehicle(player)
outputChatBox("Only policeman can enter police cars!", player)
end
end
addEventHandler("onVehicleEnter", root, enterVehicle)