function start(player)
crate = createObject(2991,-1353,-185,14)
local team = getPlayerTeam(player)
local object = createObject(2991, -1353, -185, 14)
if team then
local police = getTeamFromName("Police")
local criminals = getTeamFromName("Criminals")
if (team == police) then
outputChatBox("You're a police officer.", source, 0, 255, 0, false)
elseif (team == criminal) then
outputChatBox("You're a criminal.", source, 0, 255, 0, false)
end
end
end
function onStart(player) -- Here.
setTimer(start, 7500, 1, player)
end
addEventHandler("onResourceStart", getRootElement(), onStart)