This script was custom-made for a client, which means that not every weapon/ammo-related feature has been added to the script. However, if a feature is requested and I have time, I could add it in an update.
I’ll try to help with issues and problems as much as I can if these arise.
If you have any suggestions, ideas, or improvements then please let me know!
Description
Removes the reloading logic from GTA and replaces it with a more realistic way of reloading weapons.
To reload your weapon, the keybind is “R” on the keyboard.
Ammunition can never be above the max amount of the clip size of the specific weapon.
Features
- Maximum ammunition is the size of the clip size.
- Reloading only works if you possess a specific item in your inventory (only ESX).
- You cannot reload if your clip size is full.
- One reload equals the maximum amount of ammunition in the clip size.
Usage
- Idle: 0.01ms.
- While holding a weapon (not melee): 0.03-0.04ms.
Config
config.lua
Config = {} Config.Framework = "ESX" --"ESX" or "STANDALONE" Config.Debug = false --Displays information about the current weapon (prints to console). Config.DebugRefresh = 5000 --How often should it refresh. Config.Item = "REPLACE_ME" --Database name of YOUR item that should be used as a weapon clip. Config.SpamDelay = 1500 --If trigger and error; How long delay until next trigger. Config.CheckAndApplyAmmo = true --Weapons that have ammo beyond the clip gets its ammo automatically removed. Config.DisablePistolPunching = true --Remove melee hits while wielding a weapon. Config.NotificationStyle = "ESX" --"ESX" or "CONSOLE"; Defaults back to console (print) if not ESX. Config.Notifications = { FullClip = "You have a fully loaded clip in your weapon", NotEnough = "You don't have enough ammo boxes", --This is only if framework is "ESX" }