Jump to content

تعديل كود


Recommended Posts

السلام عليكم

ذا كود 

نيون

يسوي نور تحت السياره

local localPlayer = getLocalPlayer ( )

Window = guiCreateWindow(0,4,432,251,"",false)
guiSetVisible(Window,false)
tabPanel = guiCreateTabPanel(9,24,414,218,false,Window)
---------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------- By P0^Nu9aiF -------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------



---------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------- By P0^Nu9aiF  ------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------
tab2 = guiCreateTab("|                      |~|| Lights Color by | P0RT4L Clan||~|                     |",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 BaSeL al3nze -------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------

function ToggleMenu()
	if (guiGetVisible(Window) == true) then
        guiSetVisible(Window, false)
		showCursor(false)
	else
		guiSetVisible(Window, true)
		showCursor(true)
		local sound = playSound("Color/Color.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)

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)

هو يعمل ب 

اداة

Scroll

--------------------------------

انا ابيه

يعمل باداة

بوتون

وذا بدايه التعديل ابي احد يكمله

وذا الكود الي بداءت التعديل عليه وابي احد يعدل عليه


wnd = guiCreateWindow(264,82,274,179,".....",false)
butt2 = guiCreateButton(9,70,255,20,"||   احمر _RED   ||",false,wnd)
butt1 = guiCreateButton(9,48,256,20,"||   احمر _RED   ||",false,wnd)
butt3 = guiCreateButton(9,92,255,20,"||   احمر _RED   ||",false,wnd)


local localPlayer = getLocalPlayer ( )

wnd = guiCreateWindow(264,82,274,179,"",false)
guiSetVisible(Window,false)
-------------------------Red-----------------------------------------------
butt1 = guiCreateButton(9,48,256,20,"||   احمر _RED   ||",false,wnd)
guiButtonSetColor(butt1,255,12,15)
-------------------------Green-----------------------------------------------
butt2 = guiCreateButton(9,70,255,20,"||   GREEN _  اخضر   ||",false,wnd)
guiButtonSetColor(butt2,0,255,0)
-------------------------Blue-----------------------------------------------
butt3 = guiCreateButton(9,92,255,20,"||   ازرق _ Blue   ||",false,wnd)
guiButtonSetColor(butt3,0,150,255)
---------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------- Script By BaSeL al3nze -------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------

function ToggleMenu()
	if (guiGetVisible(wnd) == true) then
        guiSetVisible(wnd, false)
		showCursor(false)
	else
		guiSetVisible(wnd, true)
		showCursor(true)
	end
end
bindKey("F6","down",ToggleMenu)

outputChatBox("||~|| لـتـغـيـر لــون الــزنـــن  F6   أضــغــط",255,0,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)

 

 

 

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