function carcolor( player, command, col1, col2 )
local veh = getPedOccupiedVehicle(player)
local playeraccount = getPlayerAccount ( player )
local accountname = getAccountName(getPlayerAccount(player))
if not col1 or not col2 then
outputChatBox("* ERROR: Command is /vehcolor [vehicle color 1] [vehicle color 2]",player,255,0,0)
elseif col1 == "0" and col2 == "6" then
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) then
setAccountData (playeraccount, "xss.vehcolor1", col1)
setAccountData (playeraccount, "xss.vehcolor2", col2)
setVehicleColor(veh,col1,col2,0,0)
outputChatBox("* VEHCOLOR: You succesful changed your vehicle colors!",player,0,255,0)
else
outputChatBox("* ERROR: You can't use admin colors!",player,255,0,0)
end
end
end