-
Posts
54 -
Joined
-
Last visited
Posts posted by sFxMTA
-
-
Hello, a month ago i've been banned from the official MTA's Discord, during that time i didn't wrote anything in the server but at that time a malware infected my pc so i was basically spamming scam links over all servers and users, i've been doing a deep cleaning of my pc and everything and i'm wondering if i can be unbanned, sadly didn't expected such a malware at that time and i wasn't even awake when it happened
-
8 minutes ago, MaRcell said:
But without the marker, if I put the panel to appear without a marker, it appears normally so I thought it wasn’t the problem of the coordinates but I will test it thanks!
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
-
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
-
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
-
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
-
He already told you what to edit, you shoud look through your resource, find your animation and change the loop argument
-
Take a look in the whole code if there's more than one bindkey on f1, because it seems impossible, the code should work...
-
22 hours ago, killingyasoon said:
none of both are working, sorry ik i am a :O, but i need your help.
What do you get in debugscript? Also, are you using the SERVER part in a server file?
Since it looks really weird to me
-
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_binds") end end)
-
1 hour ago, thisdp said:
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
- 1
-
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 = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end
Don't blame me if that's not what you needed, that's just what i understood and i'm trying to help...
-
On 08/09/2018 at 04:11, thisdp said:
property:
"arrowColor" {arrowColorNormal, arrowColorHover, arrowColorClick}
"cursorColor" {cursorColorNormal, cursorColorHover, cursorColorClick}
"troughColor" troughColorSee Core/scrollbar.lua
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...
-
6 hours ago, thisdp said:
property:
"arrowColor" {arrowColorNormal, arrowColorHover, arrowColorClick}
"cursorColor" {cursorColorNormal, cursorColorHover, cursorColorClick}
"troughColor" troughColorSee Core/scrollbar.lua
I'll try it out, thank you for your patience, i really appreciate your help
- 1
-
21 hours ago, thisdp said:
fixed
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)
-
2 hours ago, thisdp said:
thanks for reporting it's a bug and has been discovered by you:D
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
- 1
-
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,0)}) DGS:dgsSetProperty(Nextmap,"scrollBarState",{true,false})
If you see, the scrollbar goes out of the gridlist and i can't figure out why, there's just 2 rows and i'm forcing the vertical scrollbar to true
Also, i'd like to know if there's some functions to change the scrollbar's color since i can't see anything in the documentation
I hope you all or @thisdp could help me, thanks in advance!
-
It's just the first day i had a server here but i'm not facing any big issue, i had a problem with ftp client which weren't connecting to the server but it got solved.
The ping is pretty stable, maybe the only bad thing is that the support sometimes is really slow at replies, other than that seems a good service, gonna see if my server gets deleted like a service that i tried almost 1 week ago...
- 1
-
2 hours ago, JackHughesman said:
None of our Servers Automatically Delete whatsoever. This must have been a Client Side Issue. I recommend Making a Support Ticket. No one else has had any issues with this.
A friend of mine had the server deleted too.
http://54.38.160.58:8880/ is down and because of that service i lost all of my data, same for my friend!
I wouldn't reccomend a service that shuts down your server without even sending an email, this is pure bull:~ cause i lost most of my data there!
-
Had a server for 4 or 5 days and it got deleted without a reason, i didn't even get an email for that and i lost all my data, same for a friend of mine which lost all his maps since he was using it for a mapping sv.
Don't take any free server from that and if u wanna do it make lot of backups since they don't care about your data!
-
Well, i switched to dgs but it feels like there's something missing still...
I can't figure out how to change the font size into the Edit Box and the default one is really small...
EDIT: Nevermind, i found the right documentation here https://wiki.multitheftauto.com/wiki/Dgs-dxedit
Thank you so much
- 1
-
Bump!
-
What do you get in /debugscript 3?
-
I think this might be a good base for some projects, you really have put so much effort into it and that could be seen easily
Just one thing, i think you just forgot to add the toptimes script
-
Hello, i'm getting some problems with DX Edit Box, i don't really know if it's outdated and i should use something else (If so please tell me which library i could use instead for making DX editboxes)
This is the actual library i'm using: https://forum.multitheftauto.com/topic/71958-reldx-edit-box/
Which gets me into this problem: https://imgur.com/4p41xQQ
My code:
createEditBox( "login", 0.44, 0.50, 0.13, 0.04, true, "", false, 25, "arial", false, 0, { 255,255,255, 180 }, true, { 0,0,0, 180 }, 1, true, 60, false, "Insert here your username!", { 255,255,255, 40 }, true, 3, "arial", true, true, {0, 114, 210}, false )
Problem with dgsCreateWindow
in Scripting
Posted · Edited by sFxMTA
Added the correct BBCode to my code
If you're clicking on some other dgs elements make sure to disable them, because otherwise on click they will get on top