Documentation
  • Discord Server
  • About Us
  • Free Resources
    • Death Screen
      • PS-Dispatch Integration
    • Battlepass
      • Guides
      • Commands
        • Player Commands
        • Admin Commands
      • API
        • Server
    • Garages
      • Guides
        • Creating Interior
        • Creating Garage
        • How to find entity sets (customizations) for interior
  • Paid Resources
    • Elevator Creator V2
      • Installation
      • Accessible code
    • Radar System V2
      • Installation
      • Accessible code
    • Hotels Creator
      • Accessible code
    • Vehicle Shop Creator
      • Accessible code
    • Stocks Market
      • Accessible code
      • [DEV] - Usable Functions
    • Discord Voice Attendance
      • Installation
    • Deathmatch System
      • Installation
        • esx_ambulancejob
        • qb-ambulancejob
        • wasabi_ambulance
        • qbx_medical
        • codem-inventory
        • core_inventory
      • Accessible code
    • Object Creator
      • Dependencies
      • Accessible code
    • Cocaine Labs
      • Dependencies
      • Accessible code
    • Ownable Crafting Tables
      • Dependencies
      • Accessible code
      • Common Problems
    • Evidence System
      • Dependencies
      • Accessible code
      • Installation
      • API
    • Marketplace V2
      • Accessible code
      • Installation
      • Migration from V1
    • EMS Dispatch
      • Sending Dispatch
      • Accessing the Menu
      • Config File
    • Weed Planting
      • Accessible code
      • How to add new strain?
      • How to install
    • Advanced DarkNet System
      • Config
    • Advanced Taxi Job
      • Accessible code
      • Changelog
    • Advanced Gang Creator
      • Accessible code
      • Installation
        • QB Core
        • QBOX Core
      • API
      • FAQ
    • Advanced Private Cameras
      • ESX
        • Items
      • QBCore
        • Items
      • Accessible code
    • Advanced Elevator Creator
      • Accessible code
    • Advanced Ownable Rent Creator
      • SQL
      • ESX
      • QBCore
      • Config File
    • Advanced Job Creator
      • Installation
        • QB CORE
      • Accessible code
    • Advanced Ownable Shops
      • Installation
      • Accessible code
      • SQL
    • Advanced Ped Creator
      • SQL
      • Config File
    • Advanced Promocode Creator
      • Accessible code
      • SQL File
      • Common problems
    • Advanced Safe Zone Creator
      • Config File
    • Turf Wars
      • Ox Inventory
      • Accessible code
      • API
    • Advanced Gas Station Creator
      • Accessible code
    • Advanced Advertisements System
      • SQL File
      • Accessible code
    • Player Manager
      • Installation
      • Accessible code
    • Mechanic Job
      • Installation
      • Accessible code
      • SQL
    • Advanced Radar System
      • Accessible code
      • SQL
    • Crypto Mining
      • Installation
      • Accessible code
      • Items
      • SQL
    • Racing System
      • Accessible code
    • Car Theft
      • Accessible code
    • Advanced Solar Panels
      • Accessible Code
      • SQL
      • ESX
        • Items
      • QBCore
        • Items
    • Pilot Job
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • Metadata
        • qb-smallresources
      • QBOX
        • Metadata
    • Advanced Ownable Banks
      • Accessible Code
    • Post Office
      • Accessible Code
      • ESX
        • SQL
      • QBCore
        • SQL
      • Exports
    • Weather Sync
      • API
    • Billing System
      • Accessible code
      • SQL
      • Common problems
Powered by GitBook
On this page
  1. Paid Resources
  2. Deathmatch System

Accessible code

function Notify(msg, type)
    lib.notify({
        description = msg,
        type = type,
        position = 'bottom'
    })
end

RegisterNetEvent('uniq_deathmatch:Notify', Notify)

function LockInventory(bool) end

if Inv.ox then
    function LockInventory(bool)
        if bool then
            TriggerEvent('ox_inventory:disarm', true)
        end
        exports.ox_inventory:weaponWheel(bool)
        LocalPlayer.state.invBusy = bool
        -- you can also add here healing for wounds etc
    end
elseif Inv.qb then
    function LockInventory(bool)
        LocalPlayer.state.inv_busy = bool
        -- you can also add here healing for wounds etc
    end
elseif Inv.qs then
    function LockInventory(bool)
        exports['qs-inventory']:setInventoryDisabled(bool)
        -- you can also add here healing for wounds etc
    end
end
Config = {
    Locale = 'en',

    DebugMenu = true,

    -- make players invisible until deathmatch starts (when player joins deathmatch he becomes invisible so other people dont know each others position)
    -- if your anticheat starts banning people for invisibility turn this off
    Invisible = true,

    Commands = {
        start = {
            name = 'startdm',
            help = 'Command that start deathmatch',
            restricted = 'group.admin'
        },
        join = {
            name = 'joindm',
            help = 'Command that allows you to join deathmatch event'
        },
        leave = {
            name = 'leavedm',
            help = 'Command that allows you to leave deathmatch event'
        },
        cancel = {
            name = 'canceldm',
            help = 'Command that cancels current deathmatch event',
            restricted = 'group.admin'
        },
        leaderboard = {
            name = 'eventleaderboard',
            help = 'Command that shows leaderboard of current event'
        }
    },

    Locations = {
        ['Refinery'] = {
            -- slots depends on spawn points, we dont want 2 people to be spawned in same spot
            vec3(2735.483, 1468.840, 50.326),
            vec3(2744.339, 1501.095, 50.327),
            vec3(2732.370, 1529.952, 50.687),
            vec3(2736.068, 1544.658, 50.687),
            vec3(2742.047, 1567.813, 50.687),
            vec3(2755.911, 1578.350, 50.687),
            vec3(2774.037, 1678.900, 41.523),
            vec3(2738.927, 1671.258, 41.524),
            vec3(2697.384, 1672.750, 41.523),
        },
    },

    Weapons = {
        [`WEAPON_TECPISTOL`] = 'Tactical SMG',
        [`WEAPON_ADVANCEDRIFLE`] = 'Advanced Rifle',
        [`WEAPON_APPISTOL`] = 'AP Pistol',
        [`WEAPON_ASSAULTRIFLE`] = 'Assault Rifle',
        [`WEAPON_ASSAULTRIFLE_MK2`] = 'Assault Rifle MK2',
        [`WEAPON_ASSAULTSHOTGUN`] = 'Assault Shotgun',
        [`WEAPON_ASSAULTSMG`] = 'Assault SMG',
        [`WEAPON_BULLPUPRIFLE`] = 'Bullpup Rifle',
        [`WEAPON_BULLPUPRIFLE_MK2`] = 'Bullpup Rifle MK2',
        [`WEAPON_BULLPUPSHOTGUN`] = 'Bullpup Shotgun',
        [`WEAPON_CARBINERIFLE`] = 'Carbine Rifle',
        [`WEAPON_CARBINERIFLE_MK2`] = 'Carbine Rifle MK2',
        [`WEAPON_CERAMICPISTOL`] = 'Ceramic Pistol',
        [`WEAPON_PISTOLXM3`] = 'WM 29 Pistol',
        [`WEAPON_COMBATMG`] = 'Combat MG',
        [`WEAPON_COMBATMG_MK2`] = 'Combat MG MK2',
        [`WEAPON_COMBATPDW`] = 'Combat PDW',
        [`WEAPON_COMBATPISTOL`] = 'Combat Pistol',
        [`WEAPON_COMBATSHOTGUN`] = 'Combat Shotgun',
        [`WEAPON_COMPACTLAUNCHER`] = 'Compact Grenade Launcher',
        [`WEAPON_COMPACTRIFLE`] = 'Compact Rifle',
        [`WEAPON_DBSHOTGUN`] = 'Double Barrel Shotgun',
        [`WEAPON_DOUBLEACTION`] = 'Double Action Revolver',
        [`WEAPON_EMPLAUNCHER`] = 'Compact EMP Launcher',
        [`WEAPON_FIREEXTINGUISHER`] = 'Fire Extinguisher',
        [`WEAPON_FIREWORK`] = 'Firework Launcher',
        [`WEAPON_GUSENBERG`] = 'Gusenberg',
        [`WEAPON_HEAVYRIFLE`] = 'Heavy Rifle',
        [`WEAPON_HAZARDCAN`] = 'Hazard Can',
        [`WEAPON_METALDETECTOR`] = 'Metal Detector',
        [`WEAPON_HOMINGLAUNCHER`] = 'Homing Launcher',
        [`WEAPON_HEAVYPISTOL`] = 'Heavy Pistol',
        [`WEAPON_HEAVYSHOTGUN`] = 'Heavy Shotgun',
        [`WEAPON_HEAVYSNIPER`] = 'Heavy Sniper',
        [`WEAPON_HEAVYSNIPER_MK2`] = 'Heavy Sniper MK2',
        [`WEAPON_KNIFE`] = 'Knife',
        [`WEAPON_KNUCKLE`] = 'Knuckle Dusters',
        [`WEAPON_MACHETE`] = 'Machete',
        [`WEAPON_MACHINEPISTOL`] = 'Machine Pistol',
        [`WEAPON_MARKSMANPISTOL`] = 'Marksman Pistol',
        [`WEAPON_MARKSMANRIFLE`] = 'Marksman Rifle',
        [`WEAPON_MARKSMANRIFLE_MK2`] = 'Marksman Rifle MK2',
        [`WEAPON_MG`] = 'Machine Gun',
        [`WEAPON_MINIGUN`] = 'Minigun',
        [`WEAPON_MICROSMG`] = 'Micro SMG',
        [`WEAPON_MILITARYRIFLE`] = 'Military Rifle',
        [`WEAPON_MINISMG`] = 'Mini SMG',
        [`WEAPON_MOLOTOV`] = 'Molotov',
        [`WEAPON_MUSKET`] = 'Musket',
        [`WEAPON_NAVYREVOLVER`] = 'Navy Revolver',
        [`WEAPON_NIGHTSTICK`] = 'Nightstick',
        [`WEAPON_GADGETPISTOL`] = 'Perico Pistol',
        [`WEAPON_PISTOL`] = 'Pistol',
        [`WEAPON_PISTOL50`] = 'Pistol .50',
        [`WEAPON_PISTOL_MK2`] = 'Pistol MK2',
        [`WEAPON_POOLCUE`] = 'Pool Cue',
        [`WEAPON_PUMPSHOTGUN`] = 'Pump Shotgun',
        [`WEAPON_PUMPSHOTGUN_MK2`] = 'Pump Shotgun MK2',
        [`WEAPON_RAILGUN`] = 'Railgun',
        [`WEAPON_RAILGUNXM3`] = 'Railgun XM3',
        [`WEAPON_RAYCARBINE`] = 'Unholy Hellbringer',
        [`WEAPON_RAYPISTOL`] = 'Up-n-Atomizer',
        [`WEAPON_REVOLVER`] = 'Revolver',
        [`WEAPON_REVOLVER_MK2`] = 'Revolver MK2',
        [`WEAPON_SAWNOFFSHOTGUN`] = 'Sawn Off Shotgun',
        [`WEAPON_SMG`] = 'SMG',
        [`WEAPON_SMG_MK2`] = 'SMG Mk2',
        [`WEAPON_SMOKEGRENADE`] = 'Smoke Grenade',
        [`WEAPON_SNIPERRIFLE`] = 'Sniper Rifle',
        [`WEAPON_SNOWBALL`] = 'Snow Ball',
        [`WEAPON_SNSPISTOL`] = 'SNS Pistol',
        [`WEAPON_SNSPISTOL_MK2`] = 'SNS Pistol MK2',
        [`WEAPON_SPECIALCARBINE`] = 'Special Carbine',
        [`WEAPON_SPECIALCARBINE_MK2`] = 'Special Carbine MK2',
        [`WEAPON_STONE_HATCHET`] = 'Stone Hatchet',
        [`WEAPON_AUTOSHOTGUN`] = 'Sweeper Shotgun',
        [`WEAPON_VINTAGEPISTOL`] = 'Vintage Pistol',
        [`WEAPON_RAYMINIGUN`] = 'Widowmaker',
        [`WEAPON_PRECISIONRIFLE`] = 'Precision Rifle',
        [`WEAPON_TACTICALRIFLE`] = 'Tactical Rifle',
    }
}
Discord = {

    url = '',  -- url here

    title = 'Server Name',

    /*
        https://www.spycolor.com/

        ['default'] = 14423100,
        ['blue'] = 255,
        ['red'] = 16711680,
        ['green'] = 65280,
        ['white'] = 16777215,
        ['black'] = 0,
        ['orange'] = 16744192,
        ['yellow'] = 16776960,
        ['pink'] = 16761035,
        ['lightgreen'] = 65309,
    */

    color = 65309, -- green

    imageUrl = 'https://cdn.discordapp.com/attachments/1126197898439295066/1129791542379434004/discord_banner_uniq.png', -- optional, if you dont want it put ''
}
function HasPermission(playerId)
    if IsPlayerAceAllowed(playerId, 'command') then return true end

    return false
end

function GiveItem(playerId, item, count) end

if Inv.ox then
    function GiveItem(playerId, item, count)
        exports.ox_inventory:AddItem(playerId, item, count)
    end
elseif Inv.qb then
    function GiveItem(playerId, item, count)
        exports['qb-inventory']:AddItem(playerId, item, count)
    end
elseif Inv.qs then
    function GiveItem(playerId, item, count)
        exports['qs-inventory']:AddItem(playerId, item, count)
    end
end

-- if you wnat to use rp name in scoreboard you can edit that her 
function PlayerName(playerId)
    return GetPlayerName(playerId)
end
Previouscore_inventoryNextObject Creator

Last updated 11 months ago