Sande Posted August 8, 2013 Share Posted August 8, 2013 Hey, i try make a mta safe. You can change the right 4 number code in script, and create marker to somewhere and when walk to the marker the SAFE first gui opens, and when you got right code and enter it other gui opening. I am now just maked gui becauce i wanna know how can make "GUI functions" like when you withdraw you get your moneys etc. And savesystem for moneys. I am not good scripter i am happy if someone make little serverside functions. Or tell me how to do that. Thank you so much if you help!! Client: -- Client side file -- The safe login GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.34, 0.41, 0.15, 0.19, "Kassakaappi", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(95, 75, 102, 36, "", false, GUIEditor.window[1]) --[[ IMPORTANT THING NEED TO WRITE RIGHT CODE EXAMPLE 1234 and the you are in and deposit gui etc opens.--]] GUIEditor.label[1] = guiCreateLabel(122, 38, 75, 27, "Koodi:", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(95, 125, 102, 49, "OK", false, GUIEditor.window[1]) end ) -- Main page / Withdraw / Deposit page GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(820, 515, 350, 274, "Kassakaappi: Kirjautunut", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 19, 331, 245, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Main", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(6, 73, 283, 24, "Saldo:", false, GUIEditor.tab[1]) --[[ Need to get saldo, idk how.--]] guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 18, 254, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) GUIEditor.label[2] = guiCreateLabel(6, 194, 315, 17, "Made by: Sande // ", false, GUIEditor.tab[1]) GUIEditor.label[3] = guiCreateLabel(10, 0, 305, 56, "Kassakaappi", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "sa-header") GUIEditor.label[4] = guiCreateLabel(4, 103, 285, 28, "Owner:", false, GUIEditor.tab[1]) --[[ Owner of the safe --]] guiLabelSetColor(GUIEditor.label[4], 18, 254, 0) GUIEditor.button[1] = guiCreateButton(305, 0, 25, 24, "X", false, GUIEditor.tab[1]) --[[ GUI CLOSE BUTTON--]] GUIEditor.tab[2] = guiCreateTab("Deposit", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(84, 166, 169, 45, "Deposit", false, GUIEditor.tab[2]) --[[ Deposit button --]] GUIEditor.edit[1] = guiCreateEdit(84, 101, 169, 34, "", false, GUIEditor.tab[2]) --[[ Can write how much deposit --]] GUIEditor.label[5] = guiCreateLabel(89, 18, 160, 58, "Pano", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[5], "sa-header") GUIEditor.label[6] = guiCreateLabel(38, 107, 70, 24, "Summa:", false, GUIEditor.tab[2]) GUIEditor.button[2] = guiCreateButton(84, 166, 169, 45, "Deposit", false, GUIEditor.tab[2]) GUIEditor.tab[3] = guiCreateTab("Withdraw", GUIEditor.tabpanel[1]) GUIEditor.button[3] = guiCreateButton(89, 167, 151, 44, "Withdraw", false, GUIEditor.tab[3]) --[[ Withdraw button --]] GUIEditor.label[7] = guiCreateLabel(89, 10, 151, 62, "Nosto", false, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[7], "sa-header") GUIEditor.edit[2] = guiCreateEdit(88, 99, 152, 38, "", false, GUIEditor.tab[3]) --[[ Can write how much withdraw --]] GUIEditor.label[8] = guiCreateLabel(43, 109, 74, 31, "Summa:", false, GUIEditor.tab[3]) end ) Link to comment
-.Paradox.- Posted August 9, 2013 Share Posted August 9, 2013 That's just the GUI, we won't make the rest for you. 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