-
Posts
656 -
Joined
-
Days Won
9
Everything posted by SpecT
-
Debugscript: Attempt to call global 'outputChatBox' (a nil value) function gowmo() local team = getPlayerTeam(source) local r,g, b = getTeamColor(team) local hex = RGBToHex (r, g, b) ouputChatBox("dead"..hex..""..getPlayerName(source), 255, 255, 255, true) end addEventHandler("onClientPlayerWasted",getLocalPlayer(), gowmo)
-
Bonsai meant that there could be made an event which will be on player press ctrl + v. For example onPlayerPaste. And about your idea .. it's a really good one.
-
Oh, yeah I got it. Thanks for the calm explanation Really? So I'm not thinking before posting ... Actually there are really much ways to get player's password and that "player may have copied his password" isn't a really smart move. Anyway, you had not to be so rude to express what you mean ... I simply wanted to know what is the reason to not make this function. So I'm gonna use GUI's editbox. Have a good day guys!
-
Sorry, I couldn't understand anything from what he have written above. What can't you understand? There is setClipboard but there is no getClipboard function. That's what I need. @Solidsnake14 Okay but what's the difference ? You can paste in GUI but not in DX because you can't get player's clipboard. And what's the GUI's security if you can paste anything in it? That's weird ...
-
Hello folks! Today I was working on my dx panel and then I got an idea about a cool feature and guess what ... I can't get player's clipboard because of security reasons. I simply want to get that what player copied for example youtube link and then paste it in the dxEditBox. I can't get it. If you didn't make it "because of security reasons" then why I can paste anything in GUI's editbox ? Hope that you will answer and think on making getClipboard() function. Have a nice day!
-
about your first question it can be like this : function example(key) if (key == "p") then if (getKeyState("lctrl")) then -- You code here end end end bindKey("p", "down", example) About second question : Yes you can use setClipboard() About my first question I already made it. And about my second question: You didn't get it right. I want when I'm in-game to get player's copied text (for example youtube link) and paste it in-game in dxEditBox. My question is: How to get player's clipboard (When you copy with ctrl + c) ?
-
Yeah, but I wanna do it in dx ... Is it possible? Tell me if it's not then I will do it with GUI .. PS: I mean: just like setClipboard but getClipboard somehow. I want to let it take what I copied for example youtube link and paste it in the edit box (DX). PS: I'm not using GUI's editbox.
-
Oh, thanks I just made something similar and it worked. Thanks anyway! And I have got another question: I searched in the wiki for a function to get players copied text (clipboard) but there is no function like this because of security reasons. So I want to make a dxEdit bar where I could paste my text ... Is there any way to make it so I will be able to paste the text I copied - just like in GUI.
-
Hello guys! I'm wondering how it is possible to bind 2 keys to do one function. But to let it call the function they have to be pressed both of them. For example ctrl + p then it will call the function. Thanks in advance!
-
Finally it works just fine. Thanks again mate!
-
I need some more help ... This is the code I'm using: local length = songData[song][1] local lengthData = split ( length, ":" ) local minutes = lengthData[1] local seconds = lengthData[1] local length = (minutes*60 + seconds)*1000 outputChatBox(length.." | "..minutes..":"..seconds) The problem is that - for example the length is 4:27. After the converting it shows 4:4. How can get this fixed ?
-
Hello guys! So I want to convert length value like "3:41" to a normal value and in milliseconds. How can I do this? Hope that you can understand what I mean and will help me. Thanks in advance!
-
Oh, thanks dude! Worked like a charm
-
Hello guys! I searched for something similar but didn't find ... So I want to get a random string from a table. I have a table with names of songs. So how could I get random song? Thanks in advance!
-
client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) Yes, I know. Lel, as the guy above said "post your meta here". I saw that it's named client.lua. If it can't call the "guiGetScreenSize" then you has set it as server-side script in the meta. Also the name of the file doesn't mean anything.
-
not work client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) client.lua: 1: attempt to call global 'guiGetScreenSize' ( a nil value ) This is client-sided, not server-side ...
-
Lel ... as ALw7sH said why the hell you need to check if there is any button when actually you click a button. And all you did is added a message *facepalm* . I'm sure that the topic maker knows how to do this if he wants ... Anyway, You are welcome!
-
Actully this wont do what he want to do Oh now I got what actually he wanted to do. Well he should put that check (for the "omg") in the function where he bound the key to open/close the panel.
-
Try this. Hope that I'm not wrong. addEventHandler( "onClientKey", root, function(button,press) if button == "u" then if getElementData( source,"omg") == false then cancelEvent() end end end )
-
Looks epic! I wish you good luck with it!
-
Easier over skype Probably it is, but if you post a topic here the guys here would help you. Also the people who has the same problem will know how to solve it, instead of making topic.
-
Yeah, I think that you could only get the table server side. You should send the table to the client.
-
Well that's voteredo problem and its not caused by the userpanel. You should find another way to set the redo (from voteredo) - not using g_ForceNextMap ...
-
https://community.multitheftauto.com/in ... s&id=11293 Again there is a serial checker in his resource. Also he insults the people who commented on his resource. DONE, USER BANNED
