[Release][ESX][Gamemode] Military Team Death Match ( Optimized )

Disclaimer : i do not support this project anymore. this was just a hobby for me and now i’m busy with other things.

Hello :raised_hand:
as The Title Says This is a Full Gamemode ( it means you don’t need anything like esx_policejob for it ) written in Lua for ESX framework 1.2


The Idea of this gamemode is like my old attempt in C# ( Link )
The Concept is similar to the C# version. but it has so many features beside it and way optimized for a Server ( we tested it 16v16 ) its BETA version now.
its playable but expect bugs.
i wrote 95% of this project.


things that i don’t take the credits for :arrow_double_down:

  • Compass system ( i did some changing to it ) : LInk to the owner
  • Crouch And Prone ( i didn’t find fivem forum post ) : Link to the github
  • Flashbang ( I just used the model provided by the script and i wrote a lua version of it with some modification ) : Link to the post
  • Ped Models. Vehicle Skins . Russia Mapping ( I didn’t find anything related to the author of them )

Some Screenshots before the details :framed_picture:




:open_file_folder: The basic Concept of this gamemode is Military death match and it has 2 teams:
Russia And USA
Each team has its own Advantage and Disadvantage. Teams Should Chose the best Strategy to Win The Capture. The Strategy is the most important thing in the game.
Capture system Uses ESX Server Side Coordinate for its uses.
Like the previous release there is 6 basic divisions + 2 Squad commanders ( restricted by steam identifier ) :

  1. Commando Rifle
  2. Commando Artilerry
  3. Commando Shotgun
  4. Commando Sniper
  5. Aircraft Pilot
  6. Ground Pilot
  • Ground Squad Commander
  • Aircraft Squad Commander

Config File Details :pencil2: :
i Wrote this gamemode very config based. almost everything can be changed in config file

  • Global Configs :arrow_double_down:

  • AntiOtherPedTimer : Every X ms it will check the player peds and change them ( if they are not ) to the right ped

  • Update Blip Interval : Every X MS player blips will get updated ( 30second is enough ! )

  • Freeze time night : it keep the time to night

  • Blackout Distance : If player reaches within the X distance of the capture point Blackout will be set to true ( blackout will turn off all the lights )

  • HideAI : it will prevent peds and cars from spawning

  • EnableSupply : It will enable supply system ( Brickade and Cargobob vehicles )

  • EnableCompass : it will enable the comppas above the screen

  • EnbaleCustomSound : Custom Sounds When Throwing Grenade/Flashbang/Smoke

  • LocalSoundRadius : Distance for sending sounds ( smoke/flashbang/grenade )

  • PreventFromSpawningDouble: it will prevent vehilces from spawning double in spawn points

  • RestrictVehicle : It will prevent players to ride the vehicles that they are not supposed to

  • MumbleVoice : it will set the Radio restriction for each team ( 1,2,3,4,5 for usa| 6,7,8,9,10 for russia )

  • ShowNameAboveHead : it will use mpgamertag to show the player names above their head( currently has some issues )

  • EnableDelayForSupply : it will prevent players from spamming the supply vehicle

  • EnableMedKit : it will enable the usage of medkit in battle field ( players can respawn their team mates if they have med kit for it )

  • LocalSupportCallc : Hotkey for opening the local support menu ( rush to enemy, enemey engage, request backup , destroy enemy vehicle, going to capture point, enemy spotted )

  • GlobalSupportRequestc : Hotkey for opening the global support menu ( request aircraft bombard , request supply delivery , request ground unit backup, request transport to battle)

  • Capture Configs :arrow_double_down:

  • FirstGameWaiting : Wait time for the first automatic capture start loop when server starts

  • CaptureMANUAL : can someone start capture manually with command?

  • OnlyAdminStart : if manual is true. should we restrict manual command to admins?

  • CaptureAUTOMAT : capture will start automatic

  • MinimumPlayer : Minimum players for both team to start the capture

  • DelayBetweenGames : After Capture ends how many seconds should we wait for starting the next one?

  • WaitTimeBeforeMatch : Wait time before match ( its like warmup. teams can select their division and spawn car but they cannot exit their base )

  • ShowMatchTimeForPlayers : should we show players how many seconds left ?

  • MatchTime : MATCH TIME!!

  • MatchReward : Not DONE! its just in config file i didn’t implant anything related to this

  • CaptureDistance: Distance for Capture

  • CapturePoint : Capture points . should be a vector table

  • CapturePointMarkerType : Marker type of the capture point

  • CapturePointBlipSprite : blip sprite of the capture point

  • PreventFromGoing : Prevent players when match start to go to the enemy bases and prevent them to exit their base when Warmup is up

  • PreventDistance : Distance to trigger the teleport

  • Weapon And Damage Config :arrow_double_down:

  • WeaponsTintIndex : uses ESX Tint index for weapons

  • EnableRecoil : Recoil for guns

  • WeaponRecoil : Recoil for each gun usable in game

  • AimingRecoilDecrease : How much of the recoil should we decrease if player is aiming and not free shooting

  • CoverMultiplier : how much of the recoil should we decrease if player is shooting from a cover

  • ProneRecoilMultiplier : how much of the recoil should we decrease if player is shooting while proned

  • WalkingRecoilMultiplier : how much should we add to recoil if player is walking and shooting

  • SprintRecoilMultiplier : how much should we add to recoil if player is sprinting and shooting

  • CustomDamageMultipilier : enable custom damage modifier for guns

  • WeaponAmmo : Max Ammo and starter ammo when they get the gun

other parts are obvious and they are related to the base location of the teams


:hammer_and_wrench: Gamemode Mechanics:

  • Death: when player dies they can hold Delete For respawn or they can wait for an ally to revive them with Med Kit
  • Capture : Its Very Simple Concept of capture and win mechanic. Players should stay in capture point in order to get the points
  • Request Support : Players can request support from their team mates with the Given hotkeys in config file. when the menu is open they can use ( number1,2,3,4,5 and … ) to do it faster ( like csgo )
  • Supply System : Players can Refill their ammo/Health/Armor if they are near the Supply vehicle ( Cargobob For Russia. Brickade for USA )
  • USA Radar System : it will track Russian aircrafts! ( not fully tested )
  • Flash Bang : Players will get also a custom flashbang . when they throw it if any players within 20.0 distance of the object ( can be changed in flashbang resource config ) is looking at it they will get blinded ( not fully but they cannot shoot )
  • ShowAmmo : its basic DrawText for drawing the Ammo in the magazine of the player but very larger

:warning: i was planning to run a fivem server with this project but i don’t have time and effort for it.
95% of the project is fully tested and are without bugs. i will not fix minor bugs that are created because of wrong use of config or …
currently i have many update ideas for this script but i don’t have the time to do them so don’t ask for it!


NOTE : DO NOT USE ANY OTHER ESX SCRIPTS . because ITS on ESX Framework it doesn’t maen its compatible with all esx scripts. its a gamemode not a simple esx script that you use for RP servers


:link:Github Link :


Ways To Improve:

  • In Server.lua : Change xPlayer.getCords() to Fivem Own Server side GetEntityCoords for Better Performance and Faster Status Change for Teams.

PM Me If You Have Any Other Ways to Improve the Script it self( i will try to add them but i will also add it to here so other developers can see)


10 Likes

Bruh. This is EPIC. Liked :smile:

1 Like

Gang Reza😀

1 Like

awli pesar

1 Like

What resources are required to run this? I have tried deploying it on a base ESX server for testing however you cannot progress past team selection.

Ignoring invalid .setJob() usage for "steam:xxxx"

Sorry. My bad! I didn’t provide the sql file that contains job grades and jobs related to the mod.
Please Import the sql file in the github link then try to run it

Awesome. It was driving me insane trying to figure out what was wrong!

2 Likes

which things im starting in cfg? can someone help me please? i wanna make an event on my server! and what is the command to start the match? thnx in advance on anyone who will help me!

1 Like

has anyone make it work on es_extended version 1.1.0???

I have got as far as the skin selection, but that’s it. It does not let you progress. Only rotate the ped.

It is something to do with skinchanger and esx_skin but haven’t figured it out yet.

Dude. You should not use any other ESX script alongside with this gamemode!
it uses ESX but it doesn’t mean its compatible with other esx scripts like skin changer

Not work spawn

i will NOT Fix minor bugs that are caused by miss using the script configs or using wrong version of esx or using other scripts alongside that you are not supposed to use

I was just using the latest esx and using the scripts necessary to start the server (e.g. es_extende). The error appears when I kill with the / die command and want to respawn by pressing Delete and when I press it, I get a black screen and nothing happens (error in the console writes that it occurs via the file spawn.lua).

it would be nicer if you provide a screenshot of the error!!

@rezaCyber This is a Spawn.lua bug

i just tested the script itself with latest version of es_extended (v1 final) and importet all the data again … it works completely fine! make sure you are not doing anything wrong. dont edit config from the file in github.Start es_extended and other plugins before starting the main scripts in server.cfg

@rezaCyber Would you give a list of the scripts needed to properly run the mode?

start mysql-async
start es_extended

start esx_menu_default
start esx_menu_list
start esx_menu_dialog

ensure Main
ensure MainMaps
ensure CyberFlashBang

Calm the f**k down. Just because people are finding issues, it doesn’t mean it’s a problem on the users side. There are so many variables that could cause issues on a server other than yours, you have to expect that people will contact you.