WEAPON INSTALLER & EDITOR
BUY ON TEBEX -> https://tebex.doitdigital.shop/package/6680528
DESCRIPTION
The Ultimate Script from our team lets you save both time and headache. Install all add-on weapons with just a console command or edit the weapon’s damage with just a single command even on multiple inventories/cores
ABILITIES
– Automatic weapon installer
– Automatic weapon un-installer
– Weapon Editing: Weapon Range
– Weapon Editing: Damage
– Weapon Editing: Max Head Shot Distance Player
– Weapon Editing: Head Shot Damage Modifier Player
– Weapon Editing: Recoil Accuracy Max
– Weapon Editing: Recoil Shake Amplitude
– Weapon Editing: Time Between Shots
– Weapon Editing: Clip/mag Size
– Weapon component Editing: Range Modifier
– Weapon component Editing: Damage Modifier
– Weapon component Editing: Ammo Info
– Weapon component Editing: Recoil Shake Amplitude Modifier
WHAT WE SUPPORT
(In the near future we will add more)
– ESX
– QBCORE
– OX_INVENTORY
– QS-INVENTORY (coming soon…..)
SCRIPT INSTALLATION
Copy and paste the doitdigital_weapon_installer_and_editor to your resources folder and add the resource to your server.cfg
HOW TO USE IT…
Remember on every core/inventory you use the same commands to install a weapon, uninstall a weapon, or edit the stats of a weapon…
COMMANDS
we recommend using all those commands in the server console through txAdmin.
/did_installweapon [weapon]
/did_uninstallweapon [weapon]
/did_getweaponstats [weapon]
/did_setweaponstat [weapon] [key] [value]
/did_setweaponcomponentstat [weapon] [component] [key] [value]
HOW TO INSTALL/UNINSTALL AN ADD-ON WEAPON
For our example, we’ll get M4 ARCTIC WHITE CHR one of our latest weapon releases that has a variety of attachments, (Extended Mag/Clip, Scope, Grip, Suppressor, and 3 different Camo skins, Gold Chromium Skin, Purple Pink Chromium Skin and Red Chromium Skins).
The only step we need to do is type the installation command in txAdmin’s console and the weapon name like so…
did_installweapon WEAPON_M4_ARCW_CHR
after a few seconds, the weapon will be registered in your server with a notification in the server console
Weapon added successfully!
if we want to uninstall the weapon from our server we can use the uninstall command like so…
did_uninstallweapon WEAPON_M4_ARCW_CHR
after a few seconds, the weapon will be unregistered from your server with a notification in the server console
Weapon removed successfully!
HOW TO READ WEAPON STAT’S
in order to edit weapon’s stats we must first know each weapon’s stats. We’ve created a command that inform you for the weapons stats. By typing the command to get the weapons stats and the weapon name like so…
did_getweaponstats WEAPON_M4_ARCW_CHR
this will show us all the weapon’s stats like so…
Weapon: WEAPON_M4_ARCW_CHR
Resource: DoItDigital_M4_ARCTIC_WHITE_CHR
AmmoInfo: AMMO_RIFLE
Damage: 33.000000
HeadShotDamageModifierPlayer: 18.000000
MaxHeadShotDistancePlayer: 40.000000
RecoilAccuracyMax: 0.500000
RecoilShakeAmplitude: 0.333000
TimeBetweenShots: 0.135000
WeaponRange: 120.000000
Component Modifiers:
-did_m4_arcw_chr_at_supp:
—-DamageModifier: 1.000000
-did_m4_arcw_chr_mag1:
—-DamageModifier: 1.000000
-did_m4_arcw_chr_mag1:
—-ClipSize: 30
did_m4_arcw_chr_mag2:
—-ClipSize:60
Knowing this information now we’re ready to edit weapon’s stats to our liking by hitting one simple commands that automatically edits the weapon’s stats like so.
/did_setweaponstat [weapon] [key] [value]
did_setweaponstat WEAPON_M4_ARCW_CHR Damage 100.000000
with this command we set the weapon’s Damge we installed Earlier (WEAPON_M4_ARCW_CHR) to be 100. So before it was Damage: 33.000000 and after this command it will be Damage: 100.000000. The same can happen for all the other stats (AmmoInfo, Damage, HeadShotDamageModifierPlayer, MaxHeadShotDistancePlayer etc…)
HOW TO EDIT WEAPON’S COMPONENT STATS
Using the information from the above Component Stats: now we will edit the extended mag/clip clip size by typing the command to edit the component stat from the weapon we installed earlier like so…
/did_setweaponcomponentstat [weapon] [component] [key] [value]
did_setweaponcomponentstat WEAPON_M4_ARCW_CHR did_m4_arcw_chr_mag2 ClipSize 70
so with this command we edit the weapon WEAPON_M4_ARCW_CHR the component did_m4_arcw_chr_mag2 which is the extended mag and we change from this component the clip size to 70 from 60.
We can do the same to change from the suppressor (did_m4_arcw_chr_at_supp) the damage modifier like so
did_setweaponcomponentstat WEAPON_M4_ARCW_CHR did_m4_arcw_chr_at_supp DamageModifier 2
WE RECOMEND TO KEEP A BACKUP FROM YOUR CONFIGS WHERE YOU REGISTER YOUR WEAPONS CAUSE THIS SCRIPT EDITS YOUR CONFIGS FOR YOU. WE ARE NOT RESPONSIBLE IF OVERWRITE YOUR ALREADY REGISTERED WEAPONS TO NEW WEAPONS WITH DEFAULT VALUES.