Installation

This script is designed to work seamlessly with ESX and QBCore/QBOX frameworks. The configuration is the same for all frameworks and requires no additional steps.


Install Dependencies

Resource
Download

ox_lib

Insert SQL (ONLY ESX)

You can use the insert.sql file included in the script or copy its contents and execute them to set it up in your database.

CREATE TABLE `bz_zombiesystem` (
	`identifier` VARCHAR(255) NOT NULL COLLATE 'utf8_general_ci',
	`coins` INT(11) NULL DEFAULT '0',
	`level` INT(11) NULL DEFAULT '0',
	PRIMARY KEY (`identifier`) USING BTREE
) COLLATE='utf8_general_ci';

OX Inventory

Go to ox_inventory > modules > utils > client.lua and locate the Utils.WeaponWheel function.

Underneath that function, add the following code:

-- Added
local Zombie = GetResourceState("bz_zombie") == "started" and exports["bz_zombie"]:inZombie() or false
if Zombie then
  state = true
end

--All Function
function Utils.WeaponWheel(state)
    if client.disableweapons then state = true end
    if state == nil then state = EnableWeaponWheel end
	
	local Zombie = GetResourceState("bz_zombie") == "started" and exports["bz_zombie"]:inZombie() or false
	if Zombie then
        state = true
    end

    EnableWeaponWheel = state
    SetWeaponsNoAutoswap(not state)
    SetWeaponsNoAutoreload(not state)

    if client.suppresspickups then
        -- CLEAR_PICKUP_REWARD_TYPE_SUPPRESSION | SUPPRESS_PICKUP_REWARD_TYPE
        return state and N_0x762db2d380b48d04(rewardTypes) or N_0xf92099527db8e2a7(rewardTypes, true)
    end
end

Revive Event

Inventory Image

Logs (server/logs.lua)

Last updated