Jump to content

[HELP] GUI dont show up !


GuyFromPast

Recommended Posts

Posted
  
  
GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
  
  
function startGUI() 
local money = getElementData(getLocalPlayer(), "data.money") 
  
  
GUIEditor_Window[1] = guiCreateWindow(361,207,463,497,"Blagg" ,false) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(36,46,393,401,false,GUIEditor_Window[1]) 
GUIEditor_Tab[1] = guiCreateTab("Information",GUIEditor_TabPanel[1]) 
GUIEditor_Label[1] = guiCreateLabel(26,30,126,28,"MONEY"..money,false,GUIEditor_Tab[1]) 
  
guiSetVisible(GUIEditor_Window[1],false) 
end 

any idea why this gui not working ? if i press hotkey then only mouse comes but no window

Posted

removed it and

still not working when i press f7 only mouse shows up

function open() 
        if guiGetVisible ( GUIEditor_Window[1] ) then 
                -- if it is, we hide it 
                guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
        else 
                guiSetVisible ( GUIEditor_Window[1], true ) 
showCursor(true) 
 end 
end 
bindKey("F7","down",open) 

Posted

also you have created startGUI function but you never fire it.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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