colorWindow = guiCreateWindow(screenWidth/2-colorWindowWidth/2,screenHeight/2-colorWindowHeight/2,colorWindowWidth,colorWindowHeight,"Select your color...",false)
lblSkinsText = guiCreateLabel(10,27,583,109,"Here you can change your character's skin. Changing the skin costs $1300. For your convenience, the skins are arranged in several groups. \n\nYou can preview skins by clicking on them. Your character's skin will change into the selected one for a few seconds. \n\nWhen you find a skin you want, select it and click the \"Buy skin\" button. This will save the skin to your account and you will play with it until you decide to change it again.",false,skinsWindow)
guiSetText(colorWindow,"Select your headlights color...")
showHLCWindow()
else
outputChatBox("#FF6600* #FFFFFFYou need to be at least level #ABCDEF5 #FFFFFFto change your headlights color!",255,255,255,true)
end
end
function showHLCWindow ()
local self = getLocalPlayer()
local vehicle = getPedOccupiedVehicle(self)
if(vehicle)then
getVisible = guiGetVisible (colorWindow)
if(getVisible ==false)then
guiSetVisible (colorWindow,true)
guiBringToFront(colorWindow)
end
else
outputChatBox("#FF6600* #FFFFFFYou need to be in a vehicle to change your headlights color!",255,255,255,true)
end
end
function lightColor()
if source == redBar or source == greenBar or source == blueBar then
if colorPickMode =="headlights"then
local player = source
local car = getPedOccupiedVehicle(getLocalPlayer()) setVehicleHeadLightColor(car,(guiScrollBarGetScrollPosition(redBar)*2.55),(guiScrollBarGetScrollPosition(greenBar)*2.55),(guiScrollBarGetScrollPosition(blueBar)*2.55))
colorWindow = guiCreateWindow(screenWidth/2-colorWindowWidth/2,screenHeight/2-colorWindowHeight/2,colorWindowWidth,colorWindowHeight,"Select your color...",false)
lblSkinsText = guiCreateLabel(10,27,583,109,"Here you can change your character's skin. Changing the skin costs $1300. For your convenience, the skins are arranged in several groups. \n\nYou can preview skins by clicking on them. Your character's skin will change into the selected one for a few seconds. \n\nWhen you find a skin you want, select it and click the \"Buy skin\" button. This will save the skin to your account and you will play with it until you decide to change it again.",false,skinsWindow)
guiSetText(colorWindow,"Select your headlights color...")
showHLCWindow()
else
outputChatBox("#FF6600* #FFFFFFYou need to be at least level #ABCDEF5 #FFFFFFto change your headlights color!",255,255,255,true)
end
end
function showHLCWindow ()
local self = getLocalPlayer()
local vehicle = getPedOccupiedVehicle(self)
if(vehicle)then
getVisible = guiGetVisible (colorWindow)
if(getVisible ==false)then
guiSetVisible (colorWindow,true)
guiBringToFront(colorWindow)
end
else
outputChatBox("#FF6600* #FFFFFFYou need to be in a vehicle to change your headlights color!",255,255,255,true)
end
end
function lightColor()
if source == redBar or source == greenBar or source == blueBar then
if colorPickMode =="headlights"then
local player = source
local car = getPedOccupiedVehicle(getLocalPlayer()) setVehicleHeadLightColor(car,(guiScrollBarGetScrollPosition(redBar)*2.55),(guiScrollBarGetScrollPosition(greenBar)*2.55),(guiScrollBarGetScrollPosition(blueBar)*2.55))