Jump to content

[Help] CarColors!...


MiniGoveya

Recommended Posts

Write function.

    if(getPlayerTeam" class="kw2">getPlayerTeam(thePlayer) == TEAM_NAME) then [...] 

This should be work.

for example:

function test(arguments...) 
    if(getPlayerTeam" class="kw2">getPlayerTeam(thePlayer) == TEAM_NAME) then 
        local reason = {...} 
        if(not [..]) then 
            outputChatBox() 
            outputChatBox() 
            return 
        end 
  

Link to comment

nowofresh, your code doesn't does anything of what he wants O_o, i think you gotta read it again ;)

function onEnterSetColor ( thePlayer, seat, jacked ) 
local accountname = getAccountName(getPlayerAccount(thePlayer)) 
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) then 
setVehicleColor(source, 0, 0, 0, 0) 
setVehicleHeadLightColor(source, 0, 0, 0) 
else 
setVehicleColor(source, 16, 16 , 16, 16) 
setVehicleHeadLightColor(source, 0, 255, 0) 
 end 
end 
addEventHandler ( "onVehicleEnter", getRootElement(), onEnterSetColor ) 

should work, try it (not tested)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...