Jump to content

elmy2424

Members
  • Posts

    9
  • Joined

  • Last visited

elmy2424's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. hi, i want to spawn the players with the skin they select but it dont happends, as you can see i made two triggerServerEvents functions in every function of the skin buttons. the first is to chenge the value of the variable skinID serverside and the other triggerserverevent should spawns the players with skin but it dont happends.(the player spawn in the xyz points with the rotation but not with the skin) dont worry about the gui elemnts or the other functions all of those works fine. whats wrong? note: the server.lua file is in other resource. client.lua server.lua
  2. https://wiki.multitheftauto.com/wiki/OnClientGUIAccepted thanks so much man it works
  3. TRY THIS: local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local tabScript = guiCreateTab( "Script Information", tabPanel ) local tabStaff = guiCreateTab( "Staff", tabPanel ) guiCreateLabel(0.02, 0.04, 0.94, 0.2, "These scripts have been edited and have new custom systems.", true, tabScript) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "Owner - Lewis White.\nCo-Owner - Bob Falcon\nHead Admins - None\nLead Admins - None\nSuper Admins - None\nAdmins - Brian James\nTrial Admins - James Bullet, Jack Granger", true, tabStaff) function closemyWindow () guiSetVisible (myWindow, false) end addEventHandler("onClientPlayerSpawn", getRootElement(), closemyWindow)
  4. the same T.T the skins txd and dff change fine but the gui dont appears logingui neither skinselector gui. sorry for my bad english an thanks for you time.
  5. Hello guys , i made this resource; it consist on a login and skinselector panels, created separated. i want that appears the login panel first and after the player login appears the skinselector panel. as you can see inthe client i create the loginpanel and skinselector gui but i set the visibility false in the skinselector gui and is turned true when the event "CloseLoginPanel" is called from the server.lua file when the player login. the problem is that the loginpanel gui dont appears when i start the resource. i cant see whats wrong with my resource so i will be happy if you help me with this. client.lua: server.lua skinchanger.lua meta.xml Thanks for your time
  6. who can help me with the other questions plis
  7. ._. xdd auto facepalm i didnt see it im just embarrassed thanks so much men
  8. Hi MTA. i dicided to star in the scripting mta world,im a really noob so i just started reading the tutorials on the wiki and i made my fisrt custom Gui login window but it just dont appears when i started the resource. heres my gui.lua file addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() loginpanel = guiCreateWindow(233, 65, 561, 618, "Ventana de Inicio", false) guiWindowSetSizable(loginpanel, false) guiSetAlpha(loginpanel, 0.65) logbutton = guiCreateButton(21, 501, 200, 42, "Iniciar Sesión", false, loginpanel ) guiSetFont(logbutton, "sa-header") guiSetProperty(logbutton, "NormalTextColour", "FF69D429") regbutton = guiCreateButton(21, 553, 166, 42, "Registrarse", false, loginpanel) guiSetFont(regbutton, "sa-header") guiSetProperty(regbutton, "NormalTextColour", "FF69D429") guestbutton = guiCreateButton(199, 553, 129, 42, "Anónimo", false, loginpanel) guiSetFont(guestbutton, "sa-header") reguserlabel = guiCreateLabel(31, 353, 59, 17, "USUARIO:", false, loginpanel) guiLabelSetColor(reguserlabel, 252, 0, 0) regpasslabel = guiCreateLabel(31, 427, 86, 17, "CONTRASEÑA:", false, loginpanel) guiLabelSetColor(regpasslabel, 252, 0, 0) userreglogbox = guiCreateEdit(21, 380, 188, 37, "", false, loginpanel) passreglogbox = guiCreateEdit(21, 454, 188, 37, "", false, loginpanel) memo = guiCreateMemo(21, 32, 517, 217, "", false, loginpanel) memo2 = guiCreateMemo(21, 262, 205, 81, "", false, loginpanel) guiEditSetMasked(passreglogbox, true) showCursor (true) guiSetInputEnabled(true) ) and my meta.xml > author="elmy2424" version="1.0.0" type="script" name="Skin Selector" description="" showInResourceBrowser="true" /> ="gui.lua" type="client" />> whats wrong????? another questions ::: How i bind a key correctly, example: "enter" for login is necesary to use the guisetimput function?. in the forum says that the fucntion that the key will call should be this way: function functionName ( string key, string keyState, [ var arguments, ... ] ) it means that an fuction should be like this? function loginbuttonfunction ("enter", "down") or this? function loginbuttonfunction (string key, keyState) The other question is if i add and event with a resource using addEvent function this event can be used/handled whit other resource? or i need to add the event in every resource i want to use? or is not recomended? i not write/speak perfect english sorry, thanks in advance [[ goole traslator phrase ]].
×
×
  • Create New...