local root = getRootElement()
addEventHandler("onVehicleEnter", root,
function(player)
-- local vehicle = source
local team = getPlayerTeam(player)
if team then
local teamName = getTeamName(team)
if teamName == "Medic" then
outputChatBox("* Don't abuse your lights! *", player)
else
removePedFromVehicle(player)
outputChatBox("* You are not allowed to get in here! *", player)
end
end
end
)