Jump to content

تعديل شباب


LOAM

Recommended Posts

السلام عليكم شباب  انا مش عارف اركب الكود الى فوق دا معا الكود فتح اللوحه

الكود الاول عباره لما تلمس اللوحه تخرج كلمه تقولك اضغط حرف مثلا 

(H)

لفتح اللوحه

وشكرا

----------- الكود الاول

ddEventHandler 'onClientMarkerHit','onClientMarkerLeave','onClientRender'
removeEventHandler 'onClientRender'
dxDrawText
bindKey unbindKey


-----------فتح اللوحه الكود

showWindow = false --д”жн showWindow жд÷Џ Џбне« false
function LOMA ( )
if (showWindow == false) then
guiSetVisible(accept,true)
guiSetVisible(Close,true)
guiSetVisible(memo,true)
showCursor(true)
addEventHandler("onClientRender",root,DX)
end
end


addEventHandler("onClientMarkerHit",Marker,  LOMA )
addEventHandler("onClientMarkerHit",Marker1, LOMA )
addEventHandler("onClientMarkerHit",Marker2, LOMA )
addEventHandler("onClientMarkerHit",Marker3, LOMA )
addEventHandler("onClientMarkerHit",Marker4, LOMA )
addEventHandler("onClientMarkerHit",Marker5, LOMA )
addEventHandler("onClientMarkerHit",Marker6, LOMA )
addEventHandler("onClientMarkerHit",Marker7, LOMA )
addEventHandler("onClientMarkerHit",Marker8, LOMA )
-------------------------------------------

addEventHandler("onClientGUIClick",root,
function()

	if source == accept then 
		lLocal = getLocalPlayer()
		if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then
			outputChatBox ( " You are already in the team " )
		else
			triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 )
			outputChatBox("Now you Are A Ceiminal",255,0,0)
			removeEventHandler("onClientRender",root,DX)
			guiSetVisible(accept,false)
			guiSetVisible(Close,false)
			guiSetVisible(memo,false)
			showCursor(false)
		end
	elseif (source == Close) then
		removeEventHandler("onClientRender",root,DX)
		guiSetVisible(accept,false)
		guiSetVisible(Close,false)
		guiSetVisible(memo,false)
		showCursor(false)

	end
end
)

 

Link to comment
showWindow = false 

function bindOpen()
if (showWindow == false) then
guiSetVisible(accept,true)
guiSetVisible(Close,true)
guiSetVisible(memo,true)
showCursor(true)
addEventHandler("onClientRender",root,DX)
showWindow = true
elseif (showWindow == true) then 
showWindow = false
guiSetVisible(accept,false)
guiSetVisible(Close,false)
guiSetVisible(memo,false)
showCursor(false)
removeEventHandler("onClientRender",root,DX) 
end
end


function LOMA ()
bindKey("H","down",bindOpen)
outputChatBox("press H to open")
end
addEventHandler("onClientMarkerHit",Marker,  LOMA )
addEventHandler("onClientMarkerHit",Marker1, LOMA )
addEventHandler("onClientMarkerHit",Marker2, LOMA )
addEventHandler("onClientMarkerHit",Marker3, LOMA )
addEventHandler("onClientMarkerHit",Marker4, LOMA )
addEventHandler("onClientMarkerHit",Marker5, LOMA )
addEventHandler("onClientMarkerHit",Marker6, LOMA )
addEventHandler("onClientMarkerHit",Marker7, LOMA )
addEventHandler("onClientMarkerHit",Marker8, LOMA )

function LOMA2 ()
unbindKey("H","down",bindOpen)
end
addEventHandler("onClientMarkerLeave",Marker,  LOMA2 )
addEventHandler("onClientMarkerLeave",Marker1, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker2, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker3, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker4, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker5, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker6, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker7, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker8, LOMA2 )

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

addEventHandler("onClientGUIClick",root,
function()

	if source == accept then 
		lLocal = getLocalPlayer()
		if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then
			outputChatBox ( " You are already in the team " )
		else
			triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 )
			outputChatBox("Now you Are A Ceiminal",255,0,0)
			removeEventHandler("onClientRender",root,DX)
			guiSetVisible(accept,false)
			guiSetVisible(Close,false)
			guiSetVisible(memo,false)
			showCursor(false)
		end
	elseif (source == Close) then
		removeEventHandler("onClientRender",root,DX)
		guiSetVisible(accept,false)
		guiSetVisible(Close,false)
		guiSetVisible(memo,false)
		showCursor(false)

	end
end
)

 

  • Like 1
Link to comment
21 minutes ago, #BrosS said:

showWindow = false 

function bindOpen()
if (showWindow == false) then
guiSetVisible(accept,true)
guiSetVisible(Close,true)
guiSetVisible(memo,true)
showCursor(true)
addEventHandler("onClientRender",root,DX)
showWindow = true
elseif (showWindow == true) then 
showWindow = false
guiSetVisible(accept,false)
guiSetVisible(Close,false)
guiSetVisible(memo,false)
showCursor(false)
removeEventHandler("onClientRender",root,DX) 
end
end


function LOMA ()
bindKey("H","down",bindOpen)
outputChatBox("press H to open")
end
addEventHandler("onClientMarkerHit",Marker,  LOMA )
addEventHandler("onClientMarkerHit",Marker1, LOMA )
addEventHandler("onClientMarkerHit",Marker2, LOMA )
addEventHandler("onClientMarkerHit",Marker3, LOMA )
addEventHandler("onClientMarkerHit",Marker4, LOMA )
addEventHandler("onClientMarkerHit",Marker5, LOMA )
addEventHandler("onClientMarkerHit",Marker6, LOMA )
addEventHandler("onClientMarkerHit",Marker7, LOMA )
addEventHandler("onClientMarkerHit",Marker8, LOMA )

function LOMA2 ()
unbindKey("H","down",bindOpen)
end
addEventHandler("onClientMarkerLeave",Marker,  LOMA2 )
addEventHandler("onClientMarkerLeave",Marker1, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker2, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker3, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker4, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker5, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker6, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker7, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker8, LOMA2 )

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

addEventHandler("onClientGUIClick",root,
function()

	if source == accept then 
		lLocal = getLocalPlayer()
		if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then
			outputChatBox ( " You are already in the team " )
		else
			triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 )
			outputChatBox("Now you Are A Ceiminal",255,0,0)
			removeEventHandler("onClientRender",root,DX)
			guiSetVisible(accept,false)
			guiSetVisible(Close,false)
			guiSetVisible(memo,false)
			showCursor(false)
		end
	elseif (source == Close) then
		removeEventHandler("onClientRender",root,DX)
		guiSetVisible(accept,false)
		guiSetVisible(Close,false)
		guiSetVisible(memo,false)
		showCursor(false)

	end
end
)

 

يفنان يفنان

Link to comment
9 hours ago, #BrosS said:

showWindow = false 

function bindOpen()
if (showWindow == false) then
guiSetVisible(accept,true)
guiSetVisible(Close,true)
guiSetVisible(memo,true)
showCursor(true)
addEventHandler("onClientRender",root,DX)
showWindow = true
elseif (showWindow == true) then 
showWindow = false
guiSetVisible(accept,false)
guiSetVisible(Close,false)
guiSetVisible(memo,false)
showCursor(false)
removeEventHandler("onClientRender",root,DX) 
end
end


function LOMA ()
bindKey("H","down",bindOpen)
outputChatBox("press H to open")
end
addEventHandler("onClientMarkerHit",Marker,  LOMA )
addEventHandler("onClientMarkerHit",Marker1, LOMA )
addEventHandler("onClientMarkerHit",Marker2, LOMA )
addEventHandler("onClientMarkerHit",Marker3, LOMA )
addEventHandler("onClientMarkerHit",Marker4, LOMA )
addEventHandler("onClientMarkerHit",Marker5, LOMA )
addEventHandler("onClientMarkerHit",Marker6, LOMA )
addEventHandler("onClientMarkerHit",Marker7, LOMA )
addEventHandler("onClientMarkerHit",Marker8, LOMA )

function LOMA2 ()
unbindKey("H","down",bindOpen)
end
addEventHandler("onClientMarkerLeave",Marker,  LOMA2 )
addEventHandler("onClientMarkerLeave",Marker1, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker2, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker3, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker4, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker5, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker6, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker7, LOMA2 )
addEventHandler("onClientMarkerLeave",Marker8, LOMA2 )

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

addEventHandler("onClientGUIClick",root,
function()

	if source == accept then 
		lLocal = getLocalPlayer()
		if getPlayerTeam ( localPlayer ) and getTeamName ( getPlayerTeam ( localPlayer ) ) == "Criminal" then
			outputChatBox ( " You are already in the team " )
		else
			triggerServerEvent("Joinnnn", localPlayer, lLocal, 260 )
			outputChatBox("Now you Are A Ceiminal",255,0,0)
			removeEventHandler("onClientRender",root,DX)
			guiSetVisible(accept,false)
			guiSetVisible(Close,false)
			guiSetVisible(memo,false)
			showCursor(false)
		end
	elseif (source == Close) then
		removeEventHandler("onClientRender",root,DX)
		guiSetVisible(accept,false)
		guiSetVisible(Close,false)
		guiSetVisible(memo,false)
		showCursor(false)

	end
end
)

 


نوب ذذ لا تسوي اكواد جاهزة اتركه يجرب

  • Like 1
Link to comment
9 hours ago, LOAM said:

ياخى ما انا عطيتو الاكواد  عشان معرفتش اركبه

لو رحت الويكي كنت هتعمله

لو مش بتعرف تدخل الويكي فقط اضغط على الكود اللي اي شخص يساعدك به ورح ينقلك للويكي وبتشوف اكثر من مثال

  • Like 1
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...