GUIEditor = {
button = {},
label = {},
window = {},
}
GUIEditor.window[1] = guiCreateWindow(272, 117, 249, 370, "== ~ | Information Player | ~ ==", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
GUIEditor.button[1] = guiCreateButton(35, 32, 180, 38, "Copy My Serial !", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF11ED21")
GUIEditor.button[2] = guiCreateButton(35, 81, 180, 38, "Show My Money In Chat !", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDBF409")
GUIEditor.button[3] = guiCreateButton(35, 131, 180, 38, "Show My Name In Chat !", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF0582F7")
playerping = GUIEditor.label[1] = guiCreateLabel(13, 186, 236, 19, "My Ping Is ! :", false, GUIEditor.window[1])
function changeLabelColor ( )
guiLabelSetColor ( GUIEditor.label[1], math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
setTimer ( changeLabelColor, 50, 0 )
Skin = guiCreateLabel(13, 216, 236, 19, "MyID Skin is ! :", false, GUIEditor.window[1])
function changeLabelColor ( )
guiLabelSetColor ( GUIEditor.label[2], math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
setTimer ( changeLabelColor, 50, 0 )
id = guiCreateLabel(13, 245, 236, 19, "My ID is ! :", false, GUIEditor.window[1])
function changeLabelColor ( )
guiLabelSetColor ( GUIEditor.label[3], math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
setTimer ( changeLabelColor, 50, 0 )
playerw = guiCreateLabel(13, 273, 236, 19, "MyIDWeapon is ! :", false, GUIEditor.window[1])
function changeLabelColor ( )
guiLabelSetColor ( GUIEditor.label[4], math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
setTimer ( changeLabelColor, 50, 0 )
health = guiCreateLabel(13, 300, 236, 19, "My Health ! :", false, GUIEditor.window[1])
function changeLabelColor ( )
guiLabelSetColor ( GUIEditor.label[5], math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
setTimer ( changeLabelColor, 50, 0 )
armor guiCreateLabel(13, 326, 236, 19, "My Armor ! :", false, GUIEditor.window[1])
function changeLabelColor ( )
guiLabelSetColor ( GUIEditor.label[6], math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
setTimer ( changeLabelColor, 50, 0 )
GUIEditor.label[7] = guiCreateLabel(148, 346, 95, 17, "By : Mr.Ray[b]ak", false, GUIEditor.window[1])
function changeLabelColor ( )
guiLabelSetColor ( GUIEditor.label[7], math.random(0, 255), math.random(0, 255), math.random(0, 255) )
end
setTimer ( changeLabelColor, 50, 0 )
GUIEditor.button[4] = guiCreateButton(225, 22, 15, 26, "X", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA")
----------------------------------------------------------------------
function Close()
guiSetVisible(GUIEditor.window[1], false)
showCursor( false )
end
function open()
guiSetVisible(GUIEditor.window[1], true)
showCursor( true )
end
bindKey("F3","down",
function()
if (guiGetVisible(GUIEditor.window[1]) == false) then
open()
else
Close()
end
end)
addEventHandler("onClientGUIClick", root,
function( state, absoluteX, absolutey )
if (source == GUIEditor.button[4]) then
Close()
end
end
)
------------------------------------------------------------------
addEventHandler("onClientRender", getRootElement(), refreshStats)
guiSetText ( playerWeapon, getPedWeapon(localPlayer))
function refreshStats()
if guiGetVisible(GUIEditor.window[1],true) then
else
guiSetText(playerWeapon,"MyIDWeapon is ! :"..getPedWeapon(getLocalPlayer()))
end
end
------------------------------------------------------------------------
addEventHandler("onClientRender", getRootElement(), refreshStats)
guiSetText ( id, getElementRadius(localPlayer))
function refreshStats()
if guiGetVisible(GUIEditor.window[1],true) then
else
guiSetText(id,"My ID is ! :"..getElementRadius(getLocalPlayer()))
end
end
----------------------------------------------------------------------
addEventHandler("onClientRender", getRootElement(), refreshStats)
function refreshStats()
if guiGetVisible(GUIEditor.window[1],true) then
else
guiSetText(playerPing,"My Ping Is ! :"..getPlayerPing(getLocalPlayer()))
end
end
------------------------------------------------------------------------
addEventHandler("onClientRender", getRootElement(), refreshStats)
guiSetText ( Skin, getPedSkin(localPlayer))
function refreshStats()
if guiGetVisible(GUIEditor.window[1],true) then
else
guiSetText(Skin,"MyID Skin is ! :"..getPedSkin(getLocalPlayer()))
end
end
--------------------------------------------------------------------------
addEventHandler("onClientRender", getRootElement(), refreshStats)
guiSetText ( health, getElementHealth(localPlayer))
function refreshStats()
if guiGetVisible(GUIEditor.window[1],true) then
else
guiSetText(health,"My Health ! :"..getElementHealth(getLocalPlayer()))
end
end
----------------------------------------------------------------------------
addEventHandler("onClientRender", getRootElement(), refreshStats)
guiSetText ( armor, getPedArmor(localPlayer))
function refreshStats()
if guiGetVisible(GUIEditor.window[1],true) then
else
guiSetText(playerArmor,"My Armor ! :"..getPedArmor(getLocalPlayer()))
end
end
----------------------------------------------------------------------------
addEventHandler('onClientGUIClick',root,
function()
if source == GUIEditor.button[2] then
if spam then outputChatBox("You have to wait 30 sec To Use This Command",255,0,0) return end
triggerServerEvent ("showMoney", localPlayer)
spam = true
setTimer(function() spam = false end,30000,1)
end
)
----------------------------------------------------------------------------
function onGuiClick (button, state, absoluteX, absoluteY)
if source == GUIEditor.button[1] then
setClipboard ( "" .. getPlayerSerial(source) .. "" )
end
end
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)