From 3c6d88768014f462b994333419856b01c2296505 Mon Sep 17 00:00:00 2001 From: Kenshin13 <63159154+Kenshiin13@users.noreply.github.com> Date: Sun, 8 Dec 2024 23:38:13 +0100 Subject: [PATCH] feat(es_extended/client/modules/actions): add current weapon to playerdata --- [core]/es_extended/client/modules/actions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/[core]/es_extended/client/modules/actions.lua b/[core]/es_extended/client/modules/actions.lua index 1b2206bb..89c6757c 100644 --- a/[core]/es_extended/client/modules/actions.lua +++ b/[core]/es_extended/client/modules/actions.lua @@ -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