Jump to content

need help in making mod


Recommended Posts

Posted

need someone help me to make mod, i'v done with gui and buttons now i need to put codes for each button but i dont know how !

i need help please, pm me or reply

Posted
If you don't post what you have done so far, we can't help you really.

this is the panel with buttons :

  
GUIEditor = { 
    tab = {}, 
    tabpanel = {}, 
    button = {}, 
    window = {}, 
    gridlist = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(217, 121, 400, 428, "Car Control", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 1.00) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(20, 28, 364, 58, false, GUIEditor.window[1]) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(35, 117, 339, 287, false, GUIEditor.window[1]) 
  
        GUIEditor.tab[1] = guiCreateTab("Car Doors", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[1] = guiCreateButton(10, 83, 149, 76, "Open", false, GUIEditor.tab[1]) 
        guiSetFont(GUIEditor.button[1], "sa-header") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF5FFE00") 
        GUIEditor.button[2] = guiCreateButton(176, 83, 149, 76, "Close", false, GUIEditor.tab[1]) 
        guiSetFont(GUIEditor.button[2], "sa-header") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE1D00") 
  
        GUIEditor.tab[2] = guiCreateTab("Car Lights", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[3] = guiCreateButton(10, 82, 149, 74, "On", false, GUIEditor.tab[2]) 
        guiSetFont(GUIEditor.button[3], "sa-header") 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF5FFE00") 
        GUIEditor.button[4] = guiCreateButton(180, 82, 149, 74, "Off", false, GUIEditor.tab[2]) 
        guiSetFont(GUIEditor.button[4], "sa-header") 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFE1D00") 
  
        GUIEditor.tab[3] = guiCreateTab("Car Lock", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[5] = guiCreateButton(10, 82, 151, 75, "Lock", false, GUIEditor.tab[3]) 
        guiSetFont(GUIEditor.button[5], "sa-header") 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF5FFE00") 
        GUIEditor.button[6] = guiCreateButton(178, 82, 151, 75, "Unlock", false, GUIEditor.tab[3]) 
        guiSetFont(GUIEditor.button[6], "sa-header") 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE1D00") 
  
        GUIEditor.tab[4] = guiCreateTab("Hood", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[7] = guiCreateButton(10, 83, 149, 77, "Open", false, GUIEditor.tab[4]) 
        guiSetFont(GUIEditor.button[7], "sa-header") 
        guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FF5FFE00") 
        GUIEditor.button[8] = guiCreateButton(180, 83, 149, 77, "Close", false, GUIEditor.tab[4]) 
        guiSetFont(GUIEditor.button[8], "sa-header") 
        guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFE1D00") 
  
        GUIEditor.tab[5] = guiCreateTab("Truck", GUIEditor.tabpanel[1]) 
  
        GUIEditor.button[9] = guiCreateButton(10, 87, 144, 80, "Open", false, GUIEditor.tab[5]) 
        guiSetFont(GUIEditor.button[9], "sa-header") 
        guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FF5FFE00") 
        GUIEditor.button[10] = guiCreateButton(183, 87, 146, 80, "Close", false, GUIEditor.tab[5]) 
        guiSetFont(GUIEditor.button[10], "sa-header") 
        guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFE1D00") 
  
  
        GUIEditor.button[11] = guiCreateButton(369, 96, 21, 21, "X", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[11], "default-bold-small") 
        guiSetProperty(GUIEditor.button[11], "NormalTextColour", "FF00FBF8")     
    end 
) 
  
addEventHandler("onClientRender", root, 
    function() 
        dxDrawText("Car Control", 273, 157, 561, 198, tocolor(0, 0, 254, 255), 1.20, "bankgothic", "center", "center", false, false, true, false, false) 
    end 
) 
addEventHandler("onClientGUIClick", root, -- 

i need script the buttons like "car doors" open - open the car doors / close - close the car doors

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