mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Tweak(es_extended): Allow all weapons to work with ammo
This commit is contained in:
@@ -394,8 +394,8 @@ function StartServerSyncLoops()
|
||||
CreateThread(function()
|
||||
local currentWeapon = {Ammo = 0}
|
||||
while ESX.PlayerLoaded do
|
||||
local sleep = 250
|
||||
if IsPedArmed(ESX.PlayerData.ped, 4) or IsPedArmed(ESX.PlayerData.ped, 2) then
|
||||
local sleep = 300
|
||||
if GetSelectedPedWeapon(ESX.PlayerData.ped) ~= -1569615261 then
|
||||
sleep = 0
|
||||
local _,weaponHash = GetCurrentPedWeapon(ESX.PlayerData.ped, true)
|
||||
local weapon = ESX.GetWeaponFromHash(weaponHash)
|
||||
|
||||
Reference in New Issue
Block a user