function createFaislTeam()
team = createTeam ("Criminal", 255, 0, 0) -- create team named Criminal with red color
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createFaislTeam)
function joinCriminalTeam(player)
local team = getTeamFromName ("Criminal")
if (team) then -- if we found it
setPlayerTeam (player,team)
setElementModel (player, 230)
outputChatBox ( getPlayerName ( source ) .. " isn't on a team" )
end
end
addCommandHandler("join_Criminal_team", joinCriminalTeam)