mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
feat(es_extended/client/modules/actions): add current weapon to playerdata
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user