function check ( player, seat, jacked )
if getElementData(source, "policeman") == true then
if getElementData(source, "owner") == getAccountName(getPlayerAccount(player)) then
else
cancelEvent()
outputChatBox("You need to be a Policeman", player)
end
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), check )
function setcop(player, cmd)
setElementData(getPedOccupiedVehicle(player), "policeman", true)
setElementData(getPedOccupiedVehicle(player), "owner", getAccountName(getPlayerAccount(player)))
outputChatBox("The Policeman:"..getPlayerName(player), player)
end
addEventHandler ( "onVehicleEnter", getRootElement(), setcop )