Jump to content

gui with bindkey not wotk


Recommended Posts

this is client:

  
function openvipshop() 
if isElement(vipshop) then desroyElement(vipshop) 
    else  
            x,y= guiGetScreenSize() 
            vipshop=createWindow(0, 0, x-100, y-100, "Shop Vip", true ) 
            guiWindowSetMovable ( vipshop, true ) 
            changenamecharacter=guiCreateButton(0.8, 0.8, 100, 200, "Change Name", true, vipshop ) 
            showCursor(true) 
         
             
    function onClickButton() 
        triggerClientEvent("changenamec",getElementRoot(),changenamecharacter) 
        showCursor(true) 
        destroyElement(vipshop) 
     
    end 
    end 
    addEventHandler("onClientGUIClick", doiten, onClickButton ) 
    end 
 bindKey ("F2", "down", openvipshop  

Link to comment
function openvipshop() 
if isElement(vipshop) then desroyElement(vipshop) 
    else 
            x,y= guiGetScreenSize() 
            vipshop=createWindow(0, 0, x-100, y-100, "Shop Vip", true ) 
            guiWindowSetMovable ( vipshop, true ) 
            changenamecharacter=guiCreateButton(0.8, 0.8, 100, 200, "Change Name", true, vipshop ) 
            showCursor(true) 
        
            
    function onClickButton() 
        triggerClientEvent("changenamec",getElementRoot(),changenamecharacter) 
        showCursor(true) 
        destroyElement(vipshop) 
    
    end 
    end 
    addEventHandler("onClientGUIClick", doiten, onClickButton ) 
    end 
 bindKey ("F2", "down", openvipshop) 

Link to comment

i believe there is more error anyway try now

function openvipshop() 
if isElement(vipshop) then desroyElement(vipshop) 
    else 
            x,y= guiGetScreenSize() 
            vipshop =  guiCreateWindow(0, 0, x-100, y-100, "Shop Vip", true ) 
            guiWindowSetMovable ( vipshop, true ) 
            changenamecharacter = guiCreateButton(0.8, 0.8, 100, 200, "Change Name", true, vipshop ) 
            showCursor(true) 
        
            
    function onClickButton() 
        triggerClientEvent("changenamec",getElementRoot(),changenamecharacter) 
        showCursor(true) 
        destroyElement(vipshop) 
    
    end 
    end 
    addEventHandler("onClientGUIClick", doiten, onClickButton ) 
    end 
 bindKey ("F2", "down", openvipshop) 

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