شباب شوفولي حل مع هذا الكود
GUIEditor = {
tabpanel = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(202, 120, 504, 411, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 22, 485, 379, false, GUIEditor.window[1])
tab1 = guiCreateTab("Tab", GUIEditor.tabpanel[1])
playerName = guiCreateLabel(8, 120, 467, 15, "Your Name :", false, tab1)
end
)
guiLabelSetColor(playerName,0,255,0)
guiSetText ( playerName, getPlayerName(localPlayer))
function refreshStats()
if guiGetVisible(tab1,true) then
else
guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer()))
end
end
addEventHandler("onClientRender", getRootElement(), refreshStats)
bindKey ( "F12" , "down" , function()
if ( guiGetVisible ( shopWindow ) == true ) then
guiSetVisible ( shopWindow ,false )
showCursor (false )
guiSetInputEnabled(false)
elseif ( guiGetVisible ( shopWindow ) == false ) then
guiSetVisible ( shopWindow ,true )
showCursor (false )
guiSetInputEnabled(true)
end
end
)