
Lachuks
Members-
Posts
56 -
Joined
-
Last visited
Everything posted by Lachuks
-
Crosshair is not really centered but I'll take ur idea about hiding crosshair and overdrawing with image or dxDraw stuff. Thank you buddy!
-
Hey there! Want to make ingame crosshair editor like ones for csgo ( like here ) but have no clue how. Any tips, examples, lifehacks etc.? Thank you in advance
-
<file src="ground_items/items_func.Lua" type="server" /> <!-- Why <file>? --> <!-- should be like that --> <script src="ground_items/items_func.Lua" type="server" /> Maybe this? :3
-
https://wiki.multitheftauto.com/wiki/OnClientClick https://wiki.multitheftauto.com/wiki/PlaySound
-
His problem is that message outputs twice.
-
player who owns that vehicle or player who was in a vehicle or smth... if you want to make it global use getRootElement() Sry i dont understand what do ya want
-
Who is your INTENDED person? You should provide player as 2nd arg so it wont be visible to everyone.
-
I understand that but cmon... just googling "mta rotation" first result will be the link i gave him. K nvm. Im sorry if that was too rude ftom my side
-
Wtf is wrong with you dude? Use wiki or just google it. https://wiki.multitheftauto.com/wiki/SetElementRotation
-
I dont understan wut is ur problem. Explain please
-
So use this https://wiki.multitheftauto.com/wiki/OnMarkerLeave I dont rly understand wth u want. Please be more specific. What is more, u used wrong section.
-
Move picture out of loop
-
Try to use https://wiki.multitheftauto.com/wiki/OnClientClick and check if cursor is on "button" https://wiki.multitheftauto.com/wiki/IsMouseInPosition
-
Woops my bad. I can rewrite it if ya want @slapz0r . ( PM me if needed )
-
Im not master but I guess this should be ok local sW, sH = guiGetScreenSize() function drawStaff() for i, v, in ipairs(getElementsByType("player")) do if hasObjectPermissionTo(v,"function.setPlayerMuted",true) then dxDrawRectangle(0,(sH/2)*i,sW*0.15,sH*0.05,tocolor(0,0,0,150)) dxDrawText(getPlayerName(v),0,(sH/2)*i,sW*0.15,((sH/2)*i)+(sH*0.05),tocolor(255,255,255,255 ), 1, "default-bold","left","center",true, false,false,true) end end end addEventHandler("onClientRender", root, drawStaff)
-
You want to list them with dxDraw or in chat? I dont rly understand
-
1. Show us code? 2. Didnt rly understand what u mean but I guess this should be aigh ? -- CLIENT SIDE! function removeStuff() toggleControl("radar", false) -- disables F11 map showPlayerHudComponent("all", false) -- hides all hud components end addEventHandler( "onClientResourceStart", getRootElement(), removeStuff )
-
How to make columns, rows, tabs by looping stuff? e.g. It says - attempt to index global 'tab' (a nil value) Tried to do the same thing withgui and it worked well I'm idiota.... Had to add tab = {} at the top. ?
-
Hello there! I wonder how to make scrollBar for a dx list. Have seen a lot of different tutorials but none of them helped me. Seems like I'm too dumb to understand it ? Here is how my code currently looks like:
-
Reinstalled GTA and MTA, updated graphics card and DirectX, changed settings to 'suggested'.... nothing helped me out. Please help @ccw @Dutchman101
-
Yes please https://pastebin.mtasa.com/582547375
-
Can anyone please take a look at this kind of problem? I'm really out of ideas what could I do. Would be great if you stop ignoring this thread and solve caused problem asap. MTADiag is just making me download 1.5.2 unstable version which does not work...
-
Hello there! Sad to announce but my MTA is crashing too often. Sometimes when I minimize MTA then maximize it again it crashes and error popups - Also ( idk if that makes sense ) - Problem appeared after MTA update.