Jump to content

[Help]Admin car color


SoundWave

Recommended Posts

Posted

I have a small question.

I don't know how to explain but i give an example:

When an admin logs in for example /login FatBoy 1234

Then his car should turn green.

Plz tell me how i can do this.

Thx in advance.

Posted

Something like:

addEventHandler( "onPlayerLogin", root, function( _, acc ) 
  if getAccountName( acc ) == "FatBoy" then 
    local veh = getPedOccupiedVehicle( source ); 
    if veh then setVehicleColor( veh, 86, 86, 0, 0 ); end; 
  end; 
end ); 

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...