Hello guys,
I just messed around with the create team script, and I got it working. But I have a question, I want my Carcolor to be the same color as my team, could somebody help me out?
Here's a picture of what I mean by "Team"
And here's my Create team lua:
function createAdminTeamOnStart ()
AdminTeam = createTeam ( "|Kr1|", 123, 143, 209 )-- create a new team and named it 'Kr1'
end
addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler
function setAdminTeam()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then -- if he is admin
setPlayerTeam(source, AdminTeam) -- set him to admin team
end
end
addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler