DonPro Posted June 14, 2014 Share Posted June 14, 2014 hello i have decided to maby start script so i wanna make a start script to my server. i have made the GUI and thats ready but now im wondering how i can make the buttons to work etc. so could maby someone tell me how to make something simple for this and how i can get started? i got the server but no of the scripts there is mine u know. i wanna make everything by my own so i have something to be provd off! pleas guys help me get started! i using resource to make the GUI and scripts so i can make it all ingame. -GUIeditor -Scripteditor GUIEditor.memo[4] = guiCreateMemo(109, 298, 142, 31, "", false, GUIEditor.tab[1]) GUIEditor.button[4] = guiCreateButton(10, 339, 89, 31, "Buy", false, GUIEditor.tab[1]) GUIEditor.tab[2] = guiCreateTab("Vehicle Storage", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(10, 10, 663, 269, false, GUIEditor.tab[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicle", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "Damage", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "Fuel", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.2) GUIEditor.button[5] = guiCreateButton(20, 289, 269, 50, "Repair All", false, GUIEditor.tab[2]) GUIEditor.button[6] = guiCreateButton(394, 289, 269, 50, "Repair", false, GUIEditor.tab[2]) GUIEditor.button[7] = guiCreateButton(20, 366, 269, 50, "Spawn Vehicle", false, GUIEditor.tab[2]) GUIEditor.tab[3] = guiCreateTab("Weapon Storage", GUIEditor.tabpanel[1]) GUIEditor.gridlist[2] = guiCreateGridList(12, 11, 246, 413, false, GUIEditor.tab[3]) guiGridListAddColumn(GUIEditor.gridlist[2], "Weapon", 0.5) guiGridListAddColumn(GUIEditor.gridlist[2], "Ammo", 0.5) GUIEditor.gridlist[3] = guiCreateGridList(427, 11, 246, 413, false, GUIEditor.tab[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Weapon", 0.5) guiGridListAddColumn(GUIEditor.gridlist[3], "Ammo", 0.5) GUIEditor.memo[5] = guiCreateMemo(289, 119, 99, 38, "", false, GUIEditor.tab[3]) GUIEditor.button[8] = guiCreateButton(297, 65, 81, 44, "--->", false, GUIEditor.tab[3]) GUIEditor.button[9] = guiCreateButton(297, 167, 81, 44, "<---", false, GUIEditor.tab[3]) end ) Link to comment
Cadell Posted June 14, 2014 Share Posted June 14, 2014 Better refer to mtasa wiki client and server side scripting functions and event there you get all the info you need for scripting Visit this link https://wiki.multitheftauto.com/wiki/Main_Page Link to comment
DonPro Posted June 14, 2014 Author Share Posted June 14, 2014 Better refer to mtasa wiki client and server side scripting functions and event there you get all the info you need for scriptingVisit this link https://wiki.multitheftauto.com/wiki/Main_Page thank u. but if i can ask. are there some special ways to set up a LUA? Link to comment
Cadell Posted June 14, 2014 Share Posted June 14, 2014 What you mean with special way? To write use notepad++ and for more about lua visit lua.org Link to comment
DonPro Posted June 14, 2014 Author Share Posted June 14, 2014 What you mean with special way? To write use notepad++ and for more about lua visit lua.org i mean if there is many way to set up the LUA forexample a Function can be placed in the middle of the script or do it have to be on the top to activate the script or something. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now