[PAID][ESX] Killzones | MK-Services

A script by Pain1435

No reviews yet.
[PAID][ESX] Killzones | MK-Services main image

Full Description

This resource is compatible with ESX v1.1 / ESX 1.2 (v1 Final) / ESX Legacy (v1.3 - v1.5)/ Extendedmode.

This Killzone Script is a must have for every Crimelife FiveM Server

Features

  • Nice looking public webhook
  • Multiple configurable killzones with custom rewards
  • Configurable minimal amount of players for killzones to start
  • Configurable zone & pause time
  • Blips fully configurable
  • Adjustable notification event
  • ESX events and prefix customizable
  • No performance impact for normal users
  • Low performance consumption (0.00ms - 0.02ms)

Showcase: Click me
Buy: Click me (Secured by FiveM Escrow System)

Config Snippets:

MK = MK or {}

-- By default 'en' and 'de' are supported.
-- You can modify or add new translations in the translations.lua file
MK.Language = 'en'

MK.ESXEvents = {
    GetSharedObject = 'esx:getSharedObject',
    PlayerLoaded = 'esx:playerLoaded',
    PlayerDeath = 'esx:onPlayerDeath'
}

-- Amount players needed on server for a new killzone to open
MK.MinPlayerCount = 0

-- Time how long the killzone will be active
MK.ZoneTime = 10 -- in seconds

-- Time between two killzones
MK.PauseTime = 10 -- in seconds

MK.BlipConfig = {
    Sprite = 9,
    Color = 75,
    Alpha = 75
}

MK.Killzones = {
    [1] = {
        Position = { x = -207.4201, y = -1936.786, z = 27.620389 },
        Label = 'Casino',
        Size = 200.0,
        Rewards = { -- A random entry of rewards will be picked
            { type = 'item', name = 'water', amount = 1, label = '1x water' }, -- Available types: 'item', 'money', weapon
            { type = 'money', account = 'money', amount = 10, label = '$10' }, -- For account by default you can use 'money', 'bank' and 'black_money'
            { type = 'weapon', name = 'weapon_advancedrifle', ammo = 100, label = 'Advanced Rifle' },
        }
    }
}

MK.Notify = function(type, message)
    if message ~= nil and message ~= '' then
        if type == 'success' then
            TriggerEvent('esx:showNotification', message)
        elseif type == 'warning' then
            TriggerEvent('esx:showNotification', message)
        elseif type == 'error' then
            TriggerEvent('esx:showNotification', message)
        elseif type == 'info' then
            TriggerEvent('esx:showNotification', message)
        end
    end
end
Code is accessible No
Subscription-based No
Lines (approximately) LUA: ~800 UI: ~150
Support Yes