drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
LOOOOL Another newbie Obviously, if you trigger for all players, will trigger for all players, no?
-
Noddy, getPlayerSerial already returns a string. I think you don't need to convert. And killPlayer is deprecated.
-
No problem
-
local sWidth, sHeight = guiGetScreenSize() local px = sWidth/800 local py = sHeight/600 function Messenger_On_Render () dxDrawText("*****",415.0*px,152.0*py,565.0*px,168.0*py,tocolor(0,221,255,255),0.9*py,"beckett","center","center",false,false,false) dxDrawImage(369.0,135.0,607.0,433.0,"background.png",180.0,0.0,0.0,tocolor(50,50,50,255),false) dxDrawImage(369.0,170.0,607.0,410.0,"background.png",180.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("*****",785.0,583.0,975.0,610.0,tocolor(0,221,255,255),0.9,"beckett","left","top",false,false,false) dxDrawText("*****",375.0,139.0,905.0,165.0,tocolor(0,221,255,255),1.0,"bankgothic","left","center",false,false,false) dxDrawText("*****",375.0,139.0,905.0,165.0,tocolor(90,90,90,255),1.0,"bankgothic","left","center",false,false,false) end local shown = false function Messenger_Open_or_Close () if (shown) then showCursor (false) removeEventHandler("onClientRender",root, Messenger_On_Render) shown = false else showCursor (true) addEventHandler("onClientRender",root, Messenger_On_Render) shown = true end end addCommandHandler ("chat", Messenger_Open_or_Close ) bindKey( "F2", "down", Messenger_Open_or_Close )
-
He want the account name, not the player name.
-
I don't know how to get the correct position without anything.. I use only GUIEditor and when I want to put like in the bottom, center, etc I don't need because it's easy but anyway, wait for a more experienced scripter, maybe someone knows.
-
In what you want to put a timer?
-
local x = 685.62610 local y = -2692.39307 local z = 7.5 local market = createMarker ( x, y, z, "cylinder", 1.5, 0, 0, 255, 170 ) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setElementPosition ( player, 0, 0, 0 ); end end )
-
Found 2 bugs in less than 10 minutes Errors reported. Anyway, nice job. Keep it up!
-
What? You think I will get your fucking code? Better you start learning. I don't need your code, I'm trying to help you.
-
And what is source GanJaRuleZ? We need the code.
-
You think we will get your code? Haha Post the code or we can't help. What is accountname?
-
Add the message to the table and output it. I understand, I forgot these things I tested later and i've seen.
-
If you know the right positions...
-
addEventHandler ( 'onPlayerChat', root, function ( ) if ( getPlayerSerial ( source ) == 'A48ABXD5945E4AB2EB0BF8BDD486E54994' ) then killPed ( source ) end end ) Maybe this work.
-
ahmedfef, post the fucking code so we can help.
-
LOL I said you, use QT to Lua ( I think this it the right name ).
-
sckatchof, your code is wrong. thePlayer is nil.
-
There is no program wich doesn't lag when recording because it needs to compress and some other things. The only thing you can do is buying a good pc ( what I need to do too ).
-
What is accountname?
-
If you wanna center the GUI, use this function: https://wiki.multitheftauto.com/wiki/CenterWindow It's more easy for you. To create GUIs / GUI elements / DX rectangles, images, text or other thing use GUIEditor. It generates automatically the position. To put it relative to all resolutions use: local x, y = guiGetScreenSize ( ) Then you can use like: ( posX / yourResolutionX ) * sx, ( posY / yourResolutionY ) * sy, ( width / yourResolutionX ) * sx, ( height / yourResolutionY ) * sy
-
Because Lua is Case-Sensitive. You are using event name "onClientGuiClick" and must be "onClientGUIClick".
-
Thanks. This will be very useful for me.
