QB-Weapons

Please follow step by step to not get any errors

1. Modify Fxmanifest.lua

Go to qb-weapons/fxmanifest.lua, and replace shared_scripts with:

shared_scripts {
    '@qb-core/shared/locale.lua',
    'locales/en.lua',
    'locales/*.lua',
    'config.lua',
    '@ox_lib/init.lua'
}

This will enable ox_lib, otherwise you'll get error: attempt to index a nil value (global 'lib')^7


2. Modify Weapon Equip Behavior

Go to file:

qb-weapons/client/weapondraw.lua

Inside the table:

local weapons = {
    'WEAPON_KNIFE',
    'WEAPON_NIGHTSTICK',
    'WEAPON_BREAD',
    'WEAPON_FLASHLIGHT',
    'WEAPON_HAMMER',

Scroll to around line 73, find 'weaon_snowball' and remove it

This will disable the weapon draw animation for snowballs


3. Prevent Snowball From Being Auto-Unequipped

Go to file:

qb-weapons/client/main.lua

Instructions:

Scroll to around line 136 and replace the block shown with the following code:

This will get the amount of snowballs from the inventory and set it for the ammo


4. Prevent multiple snowballs being removed

Go to file:

qb-weapons/server/main.lua

Instructions:

Scroll to around line 105 and replace the block shown with the following code:

This will prevent qb-weapons from removing multiple snowballs and just leave it to v-christmas to remove the snowballs


Done!

Last updated