[ESX/QB/OX] Weapon stats - Realistic stats for weapons (Sway, recoil, handling + more options)

This script adds new weapon stats to the game.
It also supports values for components that can take away or add values.

Stats

  • Recoil - Adjusts the recoil of the weapon
  • Sway - Adjusts the movement of the weapon in the hand.
  • Handling - Sets the rate of fire/raise option.

Other options

  • Breath holding - A breath hold can be enabled on selected weapons to temporarily suspend the sway.
  • Left / Right - Enables left to right jumping on recoil.
  • Fadeout - It turns the screen black for a moment after firing.
  • Extra bad - Adding extra minus values for recoil.
  • Extra heavy - Adding extra minus values for sway.
  • Extra slow - Adding extra minus values for handling.

Components options

Plus values.

  • Recoil - Raises the value if the component is on the weapon.
  • Sway - Raises the value if the component is on the weapon.
  • Handling - Raises the value if the component is on the weapon.

Minus values

  • Recoil - Reduces the value if the component is on the weapon.
  • Sway - Reduces the value if the component is on the weapon.
  • Handling - Reduces the value if the component is on the weapon.

Stress support

In config you can add a function for the stress you use export/function and stress can affect the sway.

Video preview

or click here for youtube.

Admin panel for editing in game.

You can edit stats directly in the game.
I recommend, but on a server where there are players to give a restart after editing.

Styles for stats preview

Weapon stats can be displayed using a hotkey or command.
Everything can be set in config.lua
For people who shoot with their fists. (Cheaters)

Mantine paper boxes

Hexagon style

Dependencies

Store

Escrow version

Source version

Source contains NUI open, which is written in react.

Other resources

Addiciton system - Dynamic addictions
In game vehicle shop creator
Moonshine distillery
Mower job
Keycards - Heists DayZ / Tarkov Inspired
Weed growing
Job calls - Order delivery
Advent calendar
Danger delivery - Ilegal shipment heist for multiple players
Scrapyard - Scrap NPC vehicles

or for more check my store.

Code is accessible Yes
Subscription-based No
Lines (approximately) 700+
Requirements ox_lib
Support Yes
4 Likes

Nice script!

1 Like

Thanks

Update - Damage

Now you can adjust the damage of the weapon.

  • Option to enable headshot
  • Weapon Damage can be modified from 0.0 to 2.0
  • Possibility to spawn a ped and test the damage.
  • Damage history in admin panel

Before update!

Before deploying the update, please save your config in SERVER/weaponstats.json.
Your current configuration is stored in this file so if you don’t want to lose it please don’t replace this file from the update.

1 Like