Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 18/02/22 in all areas

  1. Summary: Off the end of my hiatus, I returned to MTA after 6 years to pick up LUA once again and make something cool of the game that I(and many others), love the most. I was originally going to develop the gamemode to a playable point and then open source it for others to contribute and play, but after talks with a few people I have decided to keep the project private and host it when completed. So at the moment, this project is a Work In Progress, and I'm working on it on my own. But in such a short space of time, it has came a long way. The script is written the script from scratch, beginning on the 22/12/2022. I wanted the script tailored to be exactly what we need from it, no other garbage. I know these are advertisements for "Servers to Play On", but I'd like to see how much interest I can drum up to see if there's a potential playerbase, thus not wasting my time. The Lore: The background story to the lore of the server scenario is that it's 6 months into the zombie apocalypse. If you've made it this far, you must have some kind of clue so please roleplay as though you do. People are scarce, energy and fuel is scarce, items are scarce. Zombies move around in large herds. You must do what you have to do to survive. The source of the virus is unknown, but you're welcome to conspire your own theories. Roleplay: This is a roleplaying server, however you are only asked to roleplay when it affects another players experience. For instance, when encountering new players, trading with players, firefights, stealing another players vehicles/items etc. If you're playing solo and there's no-one around, play as you wish. If a bear :~s in the woods, and nobody is around... Staff: I'd like to keep staff interaction with roleplay minimal, so you can play without the need to report for an admin, and have them come to complete a task. I believe staff should only require involvement with player to player, or game-breaking bugs. Showcase: I will include a few links to screenshots, videos etc here to stuff I've been working on or made, but I can't promise I'll stay completely up to date with it. Fishing: https://youtu.be/-vuAC-4Iouo Vehicle Dashboard: https://youtu.be/ePV3rRbt7j0 Abseiling & NVG's: https://youtu.be/T-o8_IqDhaY Prone Animation: https://youtu.be/tAr61LadAdg Vehicle Refueling: https://youtu.be/92BPKAVXy2E Character Descriptions: https://youtu.be/XpcJlCVtFao Weapon Raising/Lowering & Sprinting: https://youtu.be/aQQj9thAXZA Vehicle Crashes: https://youtu.be/HzD6e8x_GW4 Realistic Vehicle Handling: https://youtu.be/sqG4hut3J_M Reload & Dry Firing Sounds: https://youtu.be/AC22-DD3_p4 Weapons, Magazines & Ammunition: https://youtu.be/WWitr8Q9QuA Player, Vehicle & Container Inventories, Character Customization & Clothing States: https://youtu.be/TGP4IjYeiEw Base Building W.I.P Demo: https://youtu.be/qunJQDzSIzU Scuba Diving W.I.P Demo: https://youtu.be/38NPWMAjicA Custom Text Signposts: https://www.youtube.com/watch?v=yzJFJ3FvPT0 Weapon Attachments: https://youtu.be/Dmll7y9r_i0 Switching Pistol Animations: https://www.youtube.com/watch?v=KAa1rAHDuwk Website: http://6monthzin.com/ Discord: https://discord.gg/FSUYd3mK
    1 point
  2. The problem may be that you are using the player serial as the table index. Try this: local serials = {} function getSerialIndex(str) local index; if(str)then for i,serial in pairs(serials)do if(str == serial)then index = i; end end if not(index)then table.insert(serials,str); end return #serials; end return index; end function updateValue(player, key, value) if not (player == nil) then local p = getSerialIndex(getPlayerSerial(player)) if players[p] == nil then players[p] = {} end players[p][key] = value end end This would work as long as the script is not stopped... If you use this option, I recommend you complement it with a database
    1 point
  3. معليهش اعذرني عالتدخل .. لكن وش الفايدة يوم تعطيه الكود جاهز وهو ماهو فاهم وش كانت مشكلته بالظبط ؟ من المفروض انك تقوله وش مشكلته عشان ما يكررها مره ثانية
    1 point
  4. if you need a unique key, then why not generate it? For example, get the player's time and add a random value to it at the end? or the player element itself? And then hase it all in md5? md5(toJSON(getRealTime())..""..math.random(0, 5000)) else md5(toJSON(getRealTime())..""..localPlayer) -- client side else element player for server side
    1 point
  5. UPDATE: I got rid of the loadstring()() injection concept for this Class.lua script because it looks unnecessary, I will just make classes independently in resources because it is almost the same effort to do right now for what I would like to achieve, so I just changed local Highlight = {} --instead of Class() -- Highlight:new to Highlight.new, and inside the .new function local data = setmetatable({}, {__index = Highlight}) However, I can still call .new function in the testing section with -- testing local playerHighlight = Highlight(localPlayer, "fresnel", {0,255,0,255}, 0, 1) -- creating new Highlight class for player local dumpster = Object(1337, localPlayer.position) playerHighlight.new(dumpster) -- [[ I DON'T WANT TO DO THIS :/ ]]
    1 point
×
×
  • Create New...