waqaarali Posted August 31, 2013 Share Posted August 31, 2013 So i got the GUI's Buttons and the window now i only want the functions so when a player clicks on the button they teleport to a specific location, i really for got how to script. The Buttons/Windows are : GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(261, 75, 269, 401, "Drift King Maps - BETA Mode", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 23, 250, 60, "Big Ear", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 99, 249, 60, "Short Drift Track", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 176, 249, 60, "Long Drift Track", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 256, 249, 60, "Air Drift Track", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 326, 249, 60, "Drift Track Long", false, GUIEditor.window[1]) end ) And leave the setElementPosition blank i will fill the x,y,z after, Thank You guys Link to comment
EstrategiaGTA Posted August 31, 2013 Share Posted August 31, 2013 setElementPosition (localPlayer, x, y, z) "onClientGUIClick" --Event Link to comment
waqaarali Posted August 31, 2013 Author Share Posted August 31, 2013 can you start me off i am really confused Link to comment
kikipov Posted August 31, 2013 Share Posted August 31, 2013 https://wiki.multitheftauto.com/wiki/Int ... _the_click and find: Detecting the click 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