Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

5 Neutral

1 Follower

About sFxMTA

  • Rank


  • Gang

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. sFxMTA


    I tried it myself and the problem is actually related to position and width/height of it, use values without screen calculations, you can use guieditor to get the position and then switch from guiElement to dgsElement
  2. sFxMTA


    I think the problem is in your X, Y, Width and Height of your window, you're using sx and sy with relative on, they are gui elements not dx, try to put something like groveWindow= dgsCreateWindow (0.15, 0.33, 0.7, 0.34, "GROVE STREET", true, tocolor(0 ,0 ,0), sy*30, false, tocolor(0 ,238, 0 ,255), nil, tocolor(28 ,28, 28,120), 5,true) And see if it still doesn't shows When you're in gui elements you don't need to calculate the screen width and height by yourself
  3. sFxMTA


    If you wanna show the panel you gotta change false to true in dgsSetVisible and put another dgsSetVisible to false right after you created your elements, otherwise if you want the opposite why are you even showing the cursor? Btw, try to explain better what you wanna get, you got me confused with it
  4. You can start drawing your panel with guieditor (https://community.multitheftauto.com/index.php?p=resources&s=details&id=141) Then you'll need to learn a bit the events you'd need: https://wiki.multitheftauto.com/wiki/OnClientGUIClick And you'll need to learn how to load dff/txd files: https://wiki.multitheftauto.com/wiki/EngineLoadTXD If you're patient enough and you wanna learn then take your time and look these pages, if you're here to get a working script then you're on the wrong section and you must hire a scripter to make it for you
  5. He already told you what to edit, you shoud look through your resource, find your animation and change the loop argument
  6. Take a look in the whole code if there's more than one bindkey on f1, because it seems impossible, the code should work...
  7. What do you get in debugscript? Also, are you using the SERVER part in a server file? Since it looks really weird to me
  8. Server: function CheckMute () if isPlayerMuted ( source ) then setElementData(source,"Muted",true); else setElementData(source,"Muted",false); end end addEventHandler("onPlayerMute", root,CheckMute) addEventHandler("onPlayerJoin", root,CheckMute) Client: bindKey(KeyToOpen or "F1","down", function () if getElementData(localPlayer,"Muted") then return end guiSetVisible(panel,false ) showCursor(guiGetVisible(panel)) if guiGetVisible(panel) == true then mode = "no_binds_when_editing" else mode = "allow_binds" end guiSetInputMode(mode or "allow_
  9. Thank you so much and sorry, i didn't knew about that function and i was trying to use that functions directly on the gridlist, haha Solved, thanks for your patience again
  10. Umh, i maybe didn't understood well but i'll try to explain what i figured out... You could store the whole data in an array and use them with onClientKey, like: function Example (button, pressOrRelease) if not pressOrRelease then return end if isMouseInPosition ( Array[0],Array[1],Array[2],Array[3] ) then outputChatBox("You clicked on X image") end end addEventHandler("onClientKey", root, Example) function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorP
  11. Sorry to update this topic still, i tried all of those functions but it seems to not affect on my gridlist, i tried different ways... {tocolor(r,g,b,a)}, tocolor(r,g,b,a), {r,g,b,a} and even hex codes but i can't get it working, maybe i'm missing something or idk...
  12. I'll try it out, thank you for your patience, i really appreciate your help
  13. Thank you so much @thisdp, i'd like to know just one more thing, is there any function to change the scrollbar color? Because i can't see anything related in the documentation (Maybe i'm blinded, idk)
  14. I hope it will get fixed, i love this library and i don't wanna change it, i'm making my whole server based on it
  15. Hello everyone, i hope someone could explain me what i'm doing wrong, i'm getting a weird bug when i start to fill my gridlist in dgs, is that a bug or what? This is my gridlist code: Nextmap = DGS:dgsCreateGridList (0.51, 0.54, 0.16, 0.14, true ) DGS:dgsSetFont ( Nextmap, "default-bold" ) DGS:dgsSetProperty(Nextmap,"bgColor",tocolor(0,0,0,180)) DGS:dgsSetProperty(Nextmap,"rowTextColor",tocolor(135,206,250,255)) DGS:dgsSetProperty(Nextmap,"columnColor",tocolor(0,0,0,180)) DGS:dgsSetProperty(Nextmap,"rowColor",{tocolor(135,206,250,0),tocolor(135,206,250,0),tocolor(135,206,250
  • Create New...