Skip to content

Commit

Permalink
Merge pull request #1263 from Thekuca/dev
Browse files Browse the repository at this point in the history
fix(es_extended/server/classes/player): trying to use non existent event
  • Loading branch information
Thekuca authored Dec 4, 2023
2 parents 69b1e16 + 5d1f90f commit 4240253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion [core]/es_extended/server/classes/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,

if weapon then
weapon.ammo = weapon.ammo - ammoCount
self.triggerEvent('esx:setWeaponAmmo', weaponName, weapon.ammo)
_SetPedAmmo(GetPlayerPed(self.source), joaat(weaponName), weapon.ammo)
end
end

Expand Down

0 comments on commit 4240253

Please sign in to comment.