feat(es_extended/client/modules/actions): add current weapon to playerdata

This commit is contained in:
Kenshin13
2024-12-08 23:38:13 +01:00
parent db685e612b
commit 3c6d887680
@@ -154,6 +154,7 @@ function Actions:TrackWeapon()
if newWeapon ~= self.currentWeapon then
self.currentWeapon = newWeapon
ESX.SetPlayerData("weapon", self.currentWeapon)
TriggerEvent("esx:weaponChanged", self.currentWeapon)
end
end