Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 25/11/22 in all areas

  1. hello welcome to the forum, i want to provide some support about your topic,you can check normal gta hud with function "setPlayerHudComponentVisible" You can create your own hud with dx functions. https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#Drawing_functions https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible
    2 points
  2. hello @Snow-Man welcome to the forum, I have prepared a code for your problem and tested it, you can solve your own problem by looking at my codes, I could not understand the code you prepared local tkill = {{"aa", 10}, {"bb", 2}, {"cc", 5}} addCommandHandler("adds", function() local test = {"bla", 404} table.insert(tkill, test) end) addCommandHandler("incr", function() tkill[2][2] = 405 end) addCommandHandler("show", function() table.sort(tkill, function (a, b) return a[2] > b[2] end) for i,_ in ipairs(tkill) do outputDebugString(tkill[i][1].." "..tkill[i][2]) end end) this way you can constantly update, and do a short solution tests local listUpdater = setTimer(function() table.sort(tkill, function (a, b) return a[2] > b[2] end) end, 300, 0)
    1 point
  3. Moving this to Scripting as it's better suited. You can check the community resources and find yourself plenty of HUD options and other resources for free: https://community.multitheftauto.com/
    1 point
  4. Hello @Alquimista Please create a new appeal containing your MTA serial. If you don't know how to get it then open your MTA, press F8 and type serial
    1 point
  5. oi @Dandnixeu criei um script de teste para você, você pode experimentá-lo local RANGE = 100 function getNearbyPlayers(player) local playerX, playerY, playerZ = getElementPosition(player) local nearbyPlayers = getElementsWithinRange(playerX, playerY, playerZ, RANGE, "player") -- get players within 100 range return nearbyPlayers --return player table end addCommandHandler("players", function(player) local players = getNearbyPlayers(player) for _,nearbyplayer in ipairs(players) do -- iterate players if(#players > 0) then outputDebugString(getPlayerName(nearbyplayer)) end end end )
    1 point
  6. Community للتحميل GitHub للمصدر
    1 point
×
×
  • Create New...