Jump to content
  • 0

/color command?


qing

Question

hello,

just a quick question: 

there is a command " /color [ColorID] "

I tried " /color RRGGBB " -nothing

I tried " /color #FF0000 " (hex form) AND " /color FF0000 " (without # )

I really need to know how to use it in the correct way, if anyone knows I would appreciate your help!

Link to comment

2 answers to this question

Recommended Posts

  • 0

Do you want make thing As That ?

addCommandHandler("red",
function ( )
local theVehicle = getPedOccupiedVehicle ( localPlayer ) -- Get If The LocalPlayer In Vehicle Or Not
if theVehicle then -- If He Was Then
setVehicleColor( theVehicle, 255, 0, 0 ) -- Set The Red Color In "RBG"
outputChatBox("The Car Color Has Changed into Red !!",0,255,0,true)
else -- If Not Then
outputChatBox("You Must Be In Car Firstly !!",0,255,0,true)
end
end
)

 

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