Commit Graph

13 Commits

Author SHA1 Message Date
SMVampire d6f5a7a5e6 fix(config.weapons.lua): Jenkins Hashed Labels
Fix mistakenly hashed weapon names for
- WEAPON_DAGGER
- WEAPON_BAT
- WEAPON_BATTLEAXE
2021-05-17 01:10:35 -04:00
SMVampire 53bd75a8de fix(config.weapons.lua): Missing WEAPON_SMG 2021-05-16 16:46:06 -04:00
SMVampire 5dffe82a52 Add Missing Weapons/Comps & Jenkins GetHashKey
This adds all of the missing weapons and matching components to the weapons config.
This also switches all the GetHashKey native commands to compiletime Jenkins hashes.
They function the same, but are about 75% faster than GetHashKey.
[FiveM HashKey Cookbook](https://cookbook.fivem.net/2019/06/23/lua-support-for-compile-time-jenkins-hashes/)
2021-05-02 21:53:14 -04:00
ElPumpo baa9ca3afc Implemented weapon tint support (desc), closes #477
- Implemented two new xPlayer functions:
  - .getWeaponTint(weaponName)
  - .setWeaponTint(weaponName, weaponTintIndex)

Thanks to @profex1999 for co authoring this!

Co-Authored-By: Andrea Passarini <profex1999@users.noreply.github.com>
2020-02-11 21:11:54 +01:00
ElPumpo f11e97e0a5 Improved ammo label handling, extended weapon configuration file with ammo hash and label 2020-02-11 11:50:59 +01:00
ElPumpo 145f8ebe75 Breaking changes: implemented global weight inventory system, read description before updating!
- Fixed #256
- Implements #173

__NO OFFICIAL ESX SCRIPT WILL WORK WITH THIS AT THE MOMENT__

This commit will break your entire ESX if you dont use the new SQL format, follow the new one if you want it all to work properly.

Scripts using `item.limit` will break too, instead use `xPlayer.canCarryItem(item, count)`
2019-10-13 20:56:09 +02:00
ElPumpo 31f3bddf4c Added weapon components 2018-12-29 00:05:23 +01:00
ElPumpo 4c5d1532b2 Added ESX.Math.* 2018-10-22 22:37:20 +02:00
ElPumpo 6511182681 Config cleanup, final commit v1.0.14 2018-05-16 21:14:08 +02:00
Tracid 2434eaee00 Update config.weapons.lua 2018-03-17 16:10:13 +01:00
Tracid 0b23dde6c8 Update config.weapons.lua 2018-03-17 13:44:32 +01:00
Tracid 09b1164e15 Add Doomsday Weapons. 2018-03-17 07:38:26 +01:00
Jérémie N'gadi 97adf4f97c build(submodules): Remove submodules + move everything at root 2017-09-15 14:26:56 +02:00