fix(rpc): remove esx:removeWeapon

This commit is contained in:
btwlouis
2023-07-10 19:06:18 +02:00
committed by GitHub
parent 6dcf536693
commit a63e75cd98
+1 -3
View File
@@ -332,9 +332,7 @@ if not Config.OxInventory then
RegisterNetEvent('esx:removeWeapon')
AddEventHandler('esx:removeWeapon', function(weapon)
local playerPed = ESX.PlayerData.ped
RemoveWeaponFromPed(playerPed, joaat(weapon))
SetPedAmmo(ESX.PlayerData.ped, joaat(weapon), 0)
print("[^1ERROR^7] event ^5'esx:removeWeapon'^7 Has Been Removed. Please use ^5xPlayer.removeWeapon^7 Instead!")
end)
RegisterNetEvent('esx:removeWeaponComponent')