cancelEvent ()
copVehicles = { [523]=true,[598]=true,[596]=true,[597]=true,[599]=true }
copTeams = {["Police"]=true,["Military"]=true,["SWAT"]=true}
function copenterVehicle ( player, seat, jacked )
if ( copVehicles[getElementModel ( source )] ) and ( not copTeams[getTeamName(getPlayerTeam( player ))] ) and ( seat == 0 ) then
cancelEvent ()
outputChatBox ( "You cannot drive this car.", 255, 0, 0, player ) --and tell the player why
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), copenterVehicle )