Jump to content
  • 0

(HELP) Marker Clothes


side

Question

Hello, excuse me, I have a question, how can I make the cj clothing store panel appear through a bookmark? and not by command, I appreciate your help!


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

root = getRootElement ()
outputChatBox ( "Tienda Cj Iniciada " )
       
function activateMenu ( player, key )
    if (mainWindow) then
        guiSetVisible ( mainWindow, true )
    else
        mainWindow = guiCreateWindow ( 0.01, 0.17, 0.3, 0.6, "CJ Customization - Enter Numbers & Apply", true )
        guiCreateLabel(0.03, 0.045, 0.94, 0.5, "                             Shirt:", true, mainWindow)
        guiCreateLabel(0.03, 0.09, 0.94, 0.5, "                            Hair:", true, mainWindow)
        guiCreateLabel(0.03, 0.135, 0.94, 0.5, "                           Pants:", true, mainWindow)
        guiCreateLabel(0.03, 0.18, 0.94, 0.5, "                          Shoes:", true, mainWindow)
        guiCreateLabel(0.03, 0.225, 0.94, 0.5, "                              Hat:", true, mainWindow)
        guiCreateLabel(0.03, 0.27, 0.94, 0.5, "                         Glasses:", true, mainWindow)
        guiCreateLabel(0.03, 0.315, 0.94, 0.5, "                       Necklace:", true, mainWindow)
        guiCreateLabel(0.03, 0.36, 0.94, 0.5, "                          Watch:", true, mainWindow)
        guiCreateLabel(0.03, 0.405, 0.94, 0.5, "         Tattoos Left Chest:", true, mainWindow)
        guiCreateLabel(0.03, 0.45, 0.94, 0.5, "       Tattoos Right Chest:", true, mainWindow)
        guiCreateLabel(0.03, 0.495, 0.94, 0.5, "           Tattoos Stomach:", true, mainWindow)
        guiCreateLabel(0.03, 0.54, 0.94, 0.5, "                 Tattoos Back:", true, mainWindow)
        guiCreateLabel(0.03, 0.585, 0.94, 0.5, "        Tattoos Lower Back:", true, mainWindow)
        guiCreateLabel(0.03, 0.63, 0.94, 0.5, "  Tattoos Left Upper Arm:", true, mainWindow)
        guiCreateLabel(0.03, 0.675, 0.94, 0.5, "  Tattoos Left Lower Arm:", true, mainWindow)
        guiCreateLabel(0.03, 0.72, 0.94, 0.5, "Tattoos Right Upper Arm:", true, mainWindow)
        guiCreateLabel(0.03, 0.765, 0.94, 0.5, "Tattoos Right Lower Arm:", true, mainWindow)
        guiCreateLabel(0.03, 0.81, 0.94, 0.5, "              \"Extra\" CJ Skins:", true, mainWindow)
        guiCreateLabel(0.03, 0.855, 0.94, 0.5, "                        Fat Stat:", true, mainWindow)
        guiCreateLabel(0.03, 0.9, 0.94, 0.5, "                   Muscle Stat:", true, mainWindow)
        editA = guiCreateEdit( 0.5, 0.045, 0.2, 0.045, "", true, mainWindow )
        editB = guiCreateEdit( 0.5, 0.09, 0.2, 0.045, "", true, mainWindow )
        editC = guiCreateEdit( 0.5, 0.135, 0.2, 0.045, "", true, mainWindow )
        editD = guiCreateEdit( 0.5, 0.18, 0.2, 0.045, "", true, mainWindow )
        editQ = guiCreateEdit( 0.5, 0.225, 0.2, 0.045, "", true, mainWindow )
        editP = guiCreateEdit( 0.5, 0.27, 0.2, 0.045, "", true, mainWindow )
        editN = guiCreateEdit( 0.5, 0.315, 0.2, 0.045, "", true, mainWindow )
        editO = guiCreateEdit( 0.5, 0.36, 0.2, 0.045, "", true, mainWindow )
        editJ = guiCreateEdit( 0.5, 0.405, 0.2, 0.045, "", true, mainWindow )
        editK = guiCreateEdit( 0.5, 0.45, 0.2, 0.045, "", true, mainWindow )
        editL = guiCreateEdit( 0.5, 0.495, 0.2, 0.045, "", true, mainWindow )
        editI = guiCreateEdit( 0.5, 0.54, 0.2, 0.045, "", true, mainWindow )
        editM = guiCreateEdit( 0.5, 0.585, 0.2, 0.045, "", true, mainWindow )
        editE = guiCreateEdit( 0.5, 0.63, 0.2, 0.045, "", true, mainWindow )
        editF = guiCreateEdit( 0.5, 0.675, 0.2, 0.045, "", true, mainWindow )
        editG = guiCreateEdit( 0.5, 0.72, 0.2, 0.045, "", true, mainWindow )
        editH = guiCreateEdit( 0.5, 0.765, 0.2, 0.045, "", true, mainWindow )
        editR = guiCreateEdit( 0.5, 0.81, 0.2, 0.045, "", true, mainWindow )
        editS = guiCreateEdit( 0.5, 0.855, 0.2, 0.045, "", true, mainWindow )
        editT = guiCreateEdit( 0.5, 0.9, 0.2, 0.045, "", true, mainWindow )
        applyButton = guiCreateButton( 0.8, 0.1, 0.2, 0.3, "Apply", true, mainWindow )
        exitButton = guiCreateButton( 0.8, 0.5, 0.2, 0.3, "Exit", true, mainWindow )
    end 
    showCursor ( true ) 
end
addCommandHandler ( "c", activateMenu )

function clickedButtonCheck ( element )
    if source == applyButton then  
        incredibleTable = {    --the order is mixed because i sorted GUI menu better than type listings in code
            [0] = { storedValue = guiGetText ( editA )
            },
            [1] = { storedValue = guiGetText ( editB )
            },
            [2] = { storedValue = guiGetText ( editC )
            },
            [3] = { storedValue = guiGetText ( editD )
            },
            [4] = { storedValue = guiGetText ( editE )
            },
            [5] = { storedValue = guiGetText ( editF )
            },
            [6] = { storedValue = guiGetText ( editG )
            },
            [7] = { storedValue = guiGetText ( editH )
            },
            [8] = { storedValue = guiGetText ( editI )
            },
            [9] = { storedValue = guiGetText ( editJ )
            },
            [10] = { storedValue = guiGetText ( editK )
            },
            [11] = { storedValue = guiGetText ( editL )
            },
            [12] = { storedValue = guiGetText ( editM )
            },
            [13] = { storedValue = guiGetText ( editN )
            },
            [14] = { storedValue = guiGetText ( editO )
            },
            [15] = { storedValue = guiGetText ( editP )
            },
            [16] = { storedValue = guiGetText ( editQ )
            },
            [17] = { storedValue = guiGetText ( editR )
            },
            [18] = { storedValue = guiGetText ( editS ) --Fat Stat
              },
            [19] = { storedValue = guiGetText ( editT ) --Muscle Stat
            }
        }
        triggerServerEvent ( "applyClothes", getLocalPlayer (), incredibleTable )
    elseif source == exitButton then
        guiSetVisible ( mainWindow, false )
        showCursor ( false ) 
    end 
     
end
addEventHandler ( "onClientGUIClick", root, clickedButtonCheck )

Edited by side
Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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