Simple0x47

Members
  • Content Count

    1,732
  • Joined

  • Last visited

  • Days Won

    8

Simple0x47 last won the day on January 12

Simple0x47 had the most liked content!

Community Reputation

293 Superstar

About Simple0x47

  • Rank
    Loc
  • Birthday 21/02/2001

Details

  • Gang
    I'm not a gangster
  • Location
    Spain
  • Occupation
    None
  • Interests
    IT

Recent Profile Visitors

8,196 profile views
  1. About why it is faster, pairs tries to get all the keys of one table (which means it doesn't look only for numbers as index). Meanwhile, making usage of a limited number of possible index values leaves you with faster results. Try tables with at least 1000 values in order to see some difference.
  2. Well since your code uses the same logic, here's a more efficient way to do it: local playerElements = getElementsByType( "player" ) local players = {} for i = 1, #playerElements do local player = playerElements[ i ] players[ i ] = { name = getPlayerName(player), alive = getElementData(player,"state") == "alive", points = tonumber( getElementData(player,"ThePoints")) or 0 } end table.sort( players, function( a, b ) return a.points > b.points end )
  3. Interesting. Recently started and already on version 6.01 🤔... I suppose another fork of OWL but I hope you guys get your server to the top!
  4. a) Loops indexed by numbers, synchronize element's data as little as possible, think twice before creating a global variable. b) If your shader is correctly implemented it shouldn't suppose a problem for a PC which can run GTA San Andreas.
  5. Since you are talking about 'top value', I suppose you've got a table, whose indexes are numerical, which contains the players. If you draw the text within a loop, which goes through all the elements of the previously mentioned table, you can easily edit the order of the players by assigning them to a different index within the table. In the case you don't have a loop whose indexes are numerical, try to implement one to keep it easy.
  6. Well. You could try with this start: https://www.Lua.org/pil/contents.html
  7. Try looking harder because there are several full roleplay gamemodes released.
  8. @Fist better relax your tits off. @Liejam is one of my greatest customers. Seriousness: 100 && Payment timing: 100 && Work description: 100
  9. I don't get why people get so upset, although the code is open-source. It'd be a different story if you would sell it for money...
  10. It seems there's certain conflict between MTA:SA and Nahimic 2+ Audio Driver. [Lag only appears when the mentioned program is on]
  11. Hello everyone! As the title says, Multi Theft Auto get's laggy (<10 fps) after the introduction screen. Tried to make usage of a nightly build, but the problem persisted. MTADiag: https://pastebin.mtasa.com/195050556
  12. No one ever: User with only 1 post: "possibly biggest project in the game". Provide some more background data about the project if you want someone interested in taking this offer.