Choose qb-inventory or ox_inventory, follow the common fix, then jump to your branch. No comment lines, straight to the point šāāļøšØ
Open no_escrow/config.lua
ā It should be false
Manual Edit
Step 1
Go to qb-weapons > client > weapdraw.lua
ā Comment out the entire file or delete it.
Step 2
Go to qb-weapons > client > main.lua
ā Find the qb-weapons:client:UseWeapon event (around line ~119 and ~169)
ā Replace the entire event with this block:
RegisterNetEvent('qb-weapons:client:UseWeapon', function(weaponData, shootbool)
local ped = PlayerPedId()
local weaponName = tostring(weaponData.name)
local weaponHash = joaat(weaponData.name)
if currentWeapon == weaponName then
TriggerEvent('0r_holsterAnim:Holster:HolsterWeapon', weaponName, weaponHash)
TriggerEvent('qb-weapons:client:SetCurrentWeapon', nil, shootbool)
currentWeapon = nil
elseif weaponName == 'weapon_stickybomb' or weaponName == 'weapon_pipebomb' or weaponName == 'weapon_smokegrenade' or weaponName == 'weapon_flare' or weaponName == 'weapon_proxmine' or weaponName == 'weapon_ball' or weaponName == 'weapon_molotov' or weaponName == 'weapon_grenade' or weaponName == 'weapon_bzgas' then
TriggerEvent('qb-weapons:client:DrawWeapon', weaponName)
GiveWeaponToPed(ped, weaponHash, 1, false, false)
SetPedAmmo(ped, weaponHash, 1)
SetCurrentPedWeapon(ped, weaponHash, true)
TriggerEvent('qb-weapons:client:SetCurrentWeapon', weaponData, shootbool)
currentWeapon = weaponName
elseif weaponName == 'weapon_snowball' then
TriggerEvent('qb-weapons:client:DrawWeapon', weaponName)
GiveWeaponToPed(ped, weaponHash, 10, false, false)
SetPedAmmo(ped, weaponHash, 10)
SetCurrentPedWeapon(ped, weaponHash, true)
TriggerServerEvent('qb-inventory:server:snowball', 'remove')
TriggerEvent('qb-weapons:client:SetCurrentWeapon', weaponData, shootbool)
currentWeapon = weaponName
else
TriggerEvent('0r_holsterAnim:Holster:DrawWeapon', weaponName, weaponHash)
TriggerEvent('qb-weapons:client:SetCurrentWeapon', weaponData, shootbool)
local ammo = tonumber(weaponData.info.ammo) or 0
if weaponName == 'weapon_petrolcan' or weaponName == 'weapon_fireextinguisher' then
ammo = 4000
end
SetPedAmmo(ped, weaponHash, ammo)
if weaponData.info.attachments then
for _, attachment in pairs(weaponData.info.attachments) do
GiveWeaponComponentToPed(ped, weaponHash, joaat(attachment.component))
end
end
if weaponData.info.tint then
SetPedWeaponTintIndex(ped, weaponHash, weaponData.info.tint)
end
currentWeapon = weaponName
end
end)