Jump to content

need help its so easy but not working with me


Chris!i!

Recommended Posts

Posted (edited)

Hello everyone i'm a trial scripter and made my second script i just need an easy help with the Button "Close" i want it like when i press it it close everything like this exp : guiSetVisible(theWindow, false)

showCursor(false) and the gui close and the cursor dont be showed anymore plz help this is the code

local Marker = createMarker(1577, -1014, 24,"cylinder", 2, 255, 255, 255, 255) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {} 
} 
addEventHandler("onClientMarkerHit", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(329, 47, 730, 683, "Walking Style", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(24, 42, 166, 123, "Sneak", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF9C0003") 
  
        GUIEditor.button[2] = guiCreateButton(193, 0, 89, 65, "", false, GUIEditor.button[1]) 
  
        GUIEditor.button[3] = guiCreateButton(227, 45, 170, 120, "Sexy Woman", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[3], "sa-header") 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF9D0003") 
        GUIEditor.button[4] = guiCreateButton(439, 50, 191, 112, "Blind Man", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[4], "sa-header") 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF9D0003") 
        GUIEditor.button[5] = guiCreateButton(24, 191, 166, 119, "Drunk Guy", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[5], "sa-header") 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF9D0003") 
        GUIEditor.button[6] = guiCreateButton(228, 203, 169, 117, "PrO", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[6], "sa-header") 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF9D0003") 
        GUIEditor.button[7] = guiCreateButton(453, 207, 177, 111, "Default", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[7], "sa-header") 
        guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF9D0003") 
        GUIEditor.button[8] = guiCreateButton(26, 340, 164, 118, "SWAT", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[8], "sa-header") 
        guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FF9D0003") 
        GUIEditor.button[9] = guiCreateButton(226, 344, 171, 114, "JetPack", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[9], "sa-header") 
        guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FF9D0003") 
        GUIEditor.button[10] = guiCreateButton(455, 343, 175, 115, "Man", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[10], "sa-header") 
        guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FF9C0003") 
        GUIEditor.button[11] = guiCreateButton(27, 493, 163, 121, "FatMan", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[11], "sa-header") 
        guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FF9C0003") 
        GUIEditor.button[12] = guiCreateButton(226, 495, 171, 119, "Gang 1", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[12], "sa-header") 
        guiSetProperty(GUIEditor.button[12], "NormalTextColour", "FF9C0003") 
        GUIEditor.button[13] = guiCreateButton(459, 493, 171, 121, "Gang 2", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[13], "sa-header") 
        guiSetProperty(GUIEditor.button[13], "NormalTextColour", "FF9C0003") 
        GUIEditor.label[14] = guiCreateLabel(31, 621, 599, 56, "Walking Style Script By Ghost", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[14], "sa-header") 
        guiLabelSetColor(GUIEditor.label[14], 0, 155, 154)   
        GUIEditor.button[15] = guiCreateButton(662, 358, 58, 83, "Close", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[15], "clear-normal") 
        guiSetProperty(GUIEditor.button[15], "NormalTextColour", "FF430001")     
    end 
) 
  
  
    function markerhit(hitElement) 
    if getElementType(hitElement) == "player" and (hitElement == localPlayer) then 
    if not guiGetVisible(theWindow) then 
    guiSetVisible(theWindow, true) 
    showCursor(true) 
    end 
    end 
    end 
    addEventHandler("onClientMarkerHit", Marker, markerhit) 

Edited by Guest

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