Jump to content

Lachuks

Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by Lachuks

  1. Crosshair is not really centered but I'll take ur idea about hiding crosshair and overdrawing with image or dxDraw stuff. Thank you buddy!
  2. 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
  3. <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
  4. Can you please tell me how are ya spawning vehs? And what debug says?
  5. https://wiki.multitheftauto.com/wiki/OnClientClick https://wiki.multitheftauto.com/wiki/PlaySound
  6. His problem is that message outputs twice.
  7. 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
  8. Who is your INTENDED person? You should provide player as 2nd arg so it wont be visible to everyone.
  9. 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
  10. Wtf is wrong with you dude? Use wiki or just google it. https://wiki.multitheftauto.com/wiki/SetElementRotation
  11. I dont understan wut is ur problem. Explain please
  12. 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.
  13. Try to use https://wiki.multitheftauto.com/wiki/OnClientClick and check if cursor is on "button" https://wiki.multitheftauto.com/wiki/IsMouseInPosition
  14. Woops my bad. I can rewrite it if ya want @slapz0r . ( PM me if needed )
  15. 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)
  16. You want to list them with dxDraw or in chat? I dont rly understand
  17. 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 )
  18. 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. ?
  19. 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:
  20. Lachuks

    MTA is crashing

    Reinstalled GTA and MTA, updated graphics card and DirectX, changed settings to 'suggested'.... nothing helped me out. Please help @ccw @Dutchman101
  21. Lachuks

    MTA is crashing

    Yes please https://pastebin.mtasa.com/582547375
  22. Lachuks

    MTA is crashing

    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...
  23. Lachuks

    MTA is crashing

    Hello? Devs? Anyone? ???
  24. Lachuks

    MTA is crashing

    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.
×
×
  • Create New...