Jump to content

ibootleeg

Members
  • Posts

    10
  • Joined

  • Last visited

ibootleeg's Achievements

Member

Member (5/54)

0

Reputation

  1. Yeah ! Worked perfectly, used the events as studied in the wiki and turned it into server mode as you said, thank you very much !
  2. Thanks, now it works, but i have another problem ): when I go to my friend, works perfectly, but I do not see him inside her, he becomes invisible. SS http://i.imgur.com/FzAMMMt.png
  3. LOL ! Just see te code, this is not my problem, my problem is, when i enter on the interior, the marker of exit don't appear ! =c
  4. Hello, the title says it all, so my problem is: I created an interior and created two markers, one for entering and other to exit, the marker entry appears, but when I enter into the interior, the marker that I created to return to the outside, does not appear! SS Outside: http://i.imgur.com/9UOB2Fn.png SS Inside: http://i.imgur.com/q64eVpL.png (The pictures are great for this reason the link's) And to complete here is the code with the coordinates x, y, z : enterMarker = createMarker(1481.139, -1771.914, 19.5, "arrow", 1.5, 0, 255, 255, 0) exitMarker = createMarker(389.76, 173.768, 1008.383, "cylinder", 1.5, 0, 255, 255, 0) function markerEnter(hitPlayer) if(hitPlayer == localPlayer) then setElementInterior (getLocalPlayer(), 3, 384.705, 173.77, 1008.383) end end addEventHandler ("onClientMarkerHit", enterMarker, markerEnter) function markerExit(hitPlayer) if(hitPlayer == localPlayer) then setElementInterior (getLocalPlayer(), 0, 1481.262, -1768.324, 18.796) end end addEventHandler ("onClientMarkerHit", exitMarker, markerExit)
  5. I had already searched for it, but now that you mention it, you could give me some example of how I would do to save some data in xml player? In which case, I want to save the car for the player they bought.
  6. Is possible to create a system in which the player complete the purchase of a car, this car gets saved to your account? Example: I bought this car after I assure him, after I quit the server it will be saved in my account when I get back on the server, I could stick it again somewhere without having to buy again. Like money save
  7. No have errors, and ok i'will remove "root = getRoot..." thanks ! Now, you don't have any idea for this ?
  8. @Dealman, thank you, it worked but when I create a button to the window, he did not appear, so the button as other things, upon entering the server only window appears. Here is the code: function createMenuGUI() local xw, xh = guiGetScreenSize() local Width, Height = 473,284 local X = (xw/2) - (Width/2) local Y = (xh/2) - (Height/2) window_test = exports.dxgui_v1:dxCreateWindow(X, Y, Width, Height, "Test", tocolor(255, 255, 255, 255), "Lighter Black") btn_test = exports.dxgui_v1:dxCreateButton(10, 50, 200, 50, "Button Test", tocolor(255, 255, 255, 255), "default-bold", "Lighter Black", window_test) end function openGUI() createMenuGUI() root = getRootElement() end addEventHandler("onClientRender", root, openGUI)
  9. @Dealman, so i need put this on my code ? @KRZO This is my code for tests. Using normal MTA GUI: function createMenuGUI() local xw, xh = guiGetScreenSize() local Width, Height = 473,284 local X = (xw/2) - (Width/2) local Y = (xh/2) - (Height/2) window_test = guiCreateWindow(X, Y, Width, Height, "Test", false) btn_test = guiCreateButton(155, 135, 200, 30, "Test Button", false, window_test) end function openGUI() createMenuGUI() end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), openGUI) Result: http://i.imgur.com/111RHhz.png Using dxGUI: function createMenuGUI() local xw, xh = guiGetScreenSize() local Width, Height = 473,284 local X = (xw/2) - (Width/2) local Y = (xh/2) - (Height/2) window_test = exports.dxgui_v1:dxCreateWindow(X, Y, Width, Height, "Test", tocolor(255, 255, 255, 255), "Lighter Black") btn_test = exports.dxgui_v1:dxCreateButton(140, 135, 200, 30, "Test Button", tocolor(255,0,0,255), "default-bold", "Orange", window_test) end function openGUI() createMenuGUI() end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), openGUI) Result (nothing): http://i.imgur.com/vH3K4Mq.png
  10. Hello, I've been trying to create, so far I can create, but when I try to use dxGUI what I had created disappears! I can not create a menu using dxGUI if someone can help me I appreciate it! Just what I need is at least how do I create a window with button and memo ! Like this login panel:
×
×
  • Create New...