iFoReX Posted March 21, 2012 Share Posted March 21, 2012 Please help me , I want make a GUI Properties for House_system But I dont know How who can help ? Link to comment
Castillo Posted March 21, 2012 Share Posted March 21, 2012 I don't understand what do you mean, please explain yourself better. Link to comment
iFoReX Posted March 21, 2012 Author Share Posted March 21, 2012 Solid I want a GUI for warp to houses of House_system when click a button , now u understand ? Link to comment
Castillo Posted March 21, 2012 Share Posted March 21, 2012 Oh, I understand, and you're asking for help or you want us to do it for you? because I think you want the second. Link to comment
iFoReX Posted March 21, 2012 Author Share Posted March 21, 2012 This is my GUI but I need help GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Progress = {} GUIEditor_Window[1] = guiCreateWindow(100,191,363,551,"GUI Sistema de Warping de Casas",false) GUIEditor_Button[1] = guiCreateButton(11,75,228,44,"Warp a mi Primera Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(11,123,228,44,"Warp a mi Segunda Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,169,228,44,"Warp a mi Tercera Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(11,216,228,44,"Warp a mi Cuarta Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[4],"default-bold-small") GUIEditor_Button[5] = guiCreateButton(11,265,228,44,"Warp a mi Quinta Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[5],"default-bold-small") GUIEditor_Button[6] = guiCreateButton(11,314,228,44,"Warp a mi Sexta Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[6],"default-bold-small") GUIEditor_Button[7] = guiCreateButton(12,361,228,44,"Warp a mi Septima Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[7],"default-bold-small") GUIEditor_Button[8] = guiCreateButton(12,409,228,44,"Warp a mi Octava Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[8],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(12,457,228,44,"Warp a mi Novena Casa",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[9],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(15,514,339,30,"GUI Creada por ElMota (c) 2012",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],200, 200, 0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Progress[1] = guiCreateProgressBar(272,71,29,436,false,GUIEditor_Window[1]) Link to comment
Castillo Posted March 21, 2012 Share Posted March 21, 2012 No, you don't need help, you want us to do it for you, do you think with creating the interface it'll magically work? Link to comment
iFoReX Posted March 21, 2012 Author Share Posted March 21, 2012 dont man , please tell me the events or functions Link to comment
BorderLine Posted March 21, 2012 Share Posted March 21, 2012 isnt necessary ask all here. You can check server and client functions and events. Make a gui is easy. Try by yourself. With this is enough help https://wiki.multitheftauto.com/wiki/Main_Page Link to comment
Soren Posted March 21, 2012 Share Posted March 21, 2012 Sometimes Solid can be a kind of rude, but he is right maybe he want to get the full script. Try making the player teleport to a interior when he clicka a button Link to comment
CapY Posted March 21, 2012 Share Posted March 21, 2012 (edited) Create a button client side add onClientGuiClick handler to the button make a function which triggers the server or client event for teleporting. Done! Edited March 21, 2012 by Guest Link to comment
Absence2 Posted March 21, 2012 Share Posted March 21, 2012 lol, adding GUIs with guieditor wont solve anything viewtopic.php?f=108&t=27571&p=309989#p309989 https://community.multitheftauto.com/index.php?p=resources Link to comment
Castillo Posted March 21, 2012 Share Posted March 21, 2012 Create a button server sideadd onClientGuiClick handler to the button make a function which triggers the server or client event for teleporting. Done! GUI is client side only, how will he create a button server side? Link to comment
MIKI785 Posted March 21, 2012 Share Posted March 21, 2012 Something like this? Client: addEventHandler("onClientGuiClick", someButton, --Change someButton to your button.. function () triggerServerEvent("iWannaTeleportNow", getLocalPlayer()) end) Server: addEvent("iWannaTeleportNow", true) addEventHandler("iWannaTeleportNow", getRootElement(), function () setElementPosition(source, posX, posY, posZ ) --Edit outputChatBox("Player " .. getPlayerName(source) .. " teleported!") end) It should work, you have to edit it a little bit, but you might get the idea. Link to comment
CapY Posted March 21, 2012 Share Posted March 21, 2012 Create a button server sideadd onClientGuiClick handler to the button make a function which triggers the server or client event for teleporting. Done! GUI is client side only, how will he create a button server side? I was in rush, didn't saw what am I typing. MIKI785 setElementPosition outputChatBox can be used client side also, no need for triggers actually.. Link to comment
iFoReX Posted March 21, 2012 Author Share Posted March 21, 2012 thnx to all but my idea is teleport to the houses outside dont inside 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