Jump to content

LIGHT COLOR PLZ HELP


HoLsTeN

Recommended Posts

Posted

hi all

i edit this script

but There is a problem

When I put any Color for car light the Other persons see my car light White and i see red????

I WANT ALL SEE RED OR ANY COLOR

PLZ HELP ME

Posted
i edit this script

what script?

When I put any Color for car light the Other persons see my car light White and i see red

set it server side, not client side

I THINK RBG LIGHT CAR BUT I WILL TEST

Posted

Nobody can't help you if you don't give the code/script what you've made! ;)

Reasons for why they can't help you:

*How i've said above, they don't have your script to see what is wrong.

*They don't are an psychic to guess what you have made and fix it.

*In short, nobody can help unless you give your script to see what you did wrong.

Goodbye and good luck.

Posted (edited)
local localPlayer = getLocalPlayer ( ) 
  
Window = guiCreateWindow(0,4,432,251,"",false) 
guiSetVisible(Window,false) 
tabPanel = guiCreateTabPanel(9,24,414,218,false,Window) 
--------------------------------------------------------------------------------------------------------------------------------------------- 
-------------------------------------------------- Script By sn!per ------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------------- 
  
  
  
--------------------------------------------------------------------------------------------------------------------------------------------- 
-------------------------------------------------- Script By BaSeL SN!PER  ------------------------------------------------------------------ 
--------------------------------------------------------------------------------------------------------------------------------------------- 
tab2 = guiCreateTab("|                      |~|| Lights Color by k!ng-of-sn!per||~|                     |",tabPanel) 
ck = guiCreateButton(0.4,0.8,0.4,0.11,"Close",true,tab2) 
-------------------------Red----------------------------------------------- 
redBar2 = guiCreateScrollBar( 0.3, 0.2, 0.65, 0.1, true, true, tab2) 
colorRedLabel = guiCreateLabel(0.1,0.2,0.2,0.1,"||   RED   ||",true,tab2) 
guiLabelSetColor(colorRedLabel,255,12,15) 
-------------------------Green----------------------------------------------- 
greenBar2 = guiCreateScrollBar( 0.3, 0.4, 0.65, 0.1, true, true, tab2) 
colorGreenLabel = guiCreateLabel(0.1,0.4,0.2,0.1,"|| GREEN ||",true,tab2) 
guiLabelSetColor(colorGreenLabel,0,255,0) 
-------------------------Blue----------------------------------------------- 
blueBar2 = guiCreateScrollBar( 0.3, 0.6, 0.65, 0.1, true, true, tab2) 
colorBlueLabel = guiCreateLabel(0.1,0.6,0.2,0.1,"||  BLUE  ||",true,tab2) 
guiLabelSetColor(colorBlueLabel,0,150,255) 
  
--------------------------------------------------------------------------------------------------------------------------------------------- 
-------------------------------------------------- Script By SN!PER ------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------------- 
  
function ToggleMenu() 
    if (guiGetVisible(Window) == true) then 
        guiSetVisible(Window, false) 
        showCursor(false) 
    else 
        guiSetVisible(Window, true) 
        showCursor(true) 
        local sound = playSound("Color-KSA/Color-KSA.wav") 
        setSoundVolume(sound, 2.5) 
    end 
end 
function guiClick (button, state, absoluteX, absoluteY) 
  if (source == cl) then 
    guiSetVisible (Window, false) 
    showCursor (false) 
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), guiClick) 
function guiClick (button, state, absoluteX, absoluteY) 
  if (source == ck) then 
    guiSetVisible (Window, false) 
    showCursor (false) 
end 
end 
addEventHandler ("onClientGUIClick", getRootElement(), guiClick) 
bindKey("F6","down",ToggleMenu) 
  
outputChatBox("||~|| لـتـغـيـر لــون الــزنـــن  F6   أضــغــط",255,0,0) 
  
outputChatBox("by:  king-of-sn!per ",0,500,0) 
  
function nameColor() 
    if source == redBar1 or source == greenBar1 or source == blueBar1 then  triggerServerEvent("nameTagColorChange",getLocalPlayer(),(guiScrollBarGetScrollPosition(redBar1)*2.55),(guiScrollBarGetScrollPosition(greenBar1)*2.55),(guiScrollBarGetScrollPosition(blueBar1)*2.55))  guiLabelSetColor(labelColor,(guiScrollBarGetScrollPosition(redBar1)*2.55),(guiScrollBarGetScrollPosition(greenBar1)*2.55),(guiScrollBarGetScrollPosition(blueBar1)*2.55)) 
    end 
end 
addEventHandler("onClientGUIScroll",getRootElement(),nameColor) 
  
function lightColor() 
    if source == redBar2 or source == greenBar2 or source == blueBar2 then 
        local car = getPedOccupiedVehicle(getLocalPlayer()) setVehicleHeadLightColor(car,(guiScrollBarGetScrollPosition(redBar2)*2.55),(guiScrollBarGetScrollPosition(greenBar2)*2.55),(guiScrollBarGetScrollPosition(blueBar2)*2.55)) 
    end 
end 
addEventHandler("onClientGUIScroll",getRootElement(),lightColor) 

Edited by Guest
Posted

wtf is this?

  
outputChatBox("||~|| لـتـغـيـر لــون الــزنـــن F6 أضــغــط",255,0,0) 
  

i thought unicode is supported from 1.1..

also i think this is incorrect line (what is that thing on the right?) - or maybe its because right-to-left text?

Posted

Ok.

@AZOZE:

If you grab a script from somewhere and author allows you to use it as long as the credits are not change then do so but don't ever change the credits! This is simply stealing even though you said you edit a script, you still change the author of the script. You can ask original author of the script if you can modify it and add "modified by ".

Posted

but you CAN'T edit "script made by: " or anything like that, because you ARE NOT the author, you just change few things..

if you are painting your car to new color and you are installing new car audio system - it doesnt mean that car is made by you..

Posted
these arabian guyz never care about this, most of them are calling ALL scripts they can find as their own ..

haha nosweat.gif

Not all of them thumbdown.gif

They are only 2 UNTIL NOW

i hope the will not increase yaaahoooooooh.gif

Posted

this is not racist, but (unfortunately) a fact.

i can also tell that most Hungarians are cheaters and most Polish guys are kids thinking that everybody would fulfill all their request without eye blink (notice that im from Poland).

anyway - this wasn't my intention, let's not start flame war or something guys, peace

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