Installation

Dependencies

QBCore Framework qb-ambulancejob qb-menu


How to install

Drag the script in your folder, run the SQL theft_warzone

Make sure to configure everything in your likeness like Warzone Shop , Respawn Locations etc.


Use commands to activate or deactivate Warzone in game

Config.Commands = {
    ActivateWarzone = "startwarzone",       -- Only admins - Activate War Zone via command in game
    DeactivateWarzone = "endwarzone"        -- Only admins - Deactivate War Zone via command in game
}

Warzone Shop

-- Warzone Shop / Price = Kill Points
Config.WarzoneMenuItems = {
    [1] = {Item= "weapon_assaultrifle", Label= "Ak47", Amount= 1, Price= 10},
    [2] = {Item= "weapon_machinepistol", Label= "Tec-9", Amount= 1, Price = 5},
    [3] = {Item= "weapon_vintagepistol", Label= "Vintage Pistol", Amount= 1, Price= 4},
    [4] = {Item= "weapon_knuckle", Label= "Knockout", Amount= 1, Price= 3},
    [5] = {Item= "weapon_machete", Label= "Machete", Amount= 1, Price= 2},
    [6] = {Item= "bandage", Label= "Bandage", Amount= 10, Price= 1},
    [7] = {Item= "pistol_ammo", Label= "Pistol Ammo", Amount= 10, Price= 1},
}

Respawn Locations

-- Players will spawn randomly
Config.SpawnLocations = {
    [1] = vector3(2490.62, 4960.44, 44.77),
    [2] = vector3(2464.91, 4993.63, 46.06),
    [3] = vector3(2450.68, 4994.55, 45.94),
    [4] = vector3(2433.15, 4994.57, 46.26),
}

Last updated