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. Advanced Radar System

Accessible code

Config = {
    locales = 'en',
    versionChecking = true,

    speedType = 'mp/h', -- km/h or mp/h
    speedMath = {
        ['km/h'] = 3.6,
        ['mp/h'] = 2.2
    },

    instantRemoveMoney = true,
    instantType = 'money', -- money or bank
    billingType = 'esx_billing', -- esx_billing, custom

    useDispatch = true,

    keys = {
        finish = 191,
        cancel = 194,
        moveUp = 85,
        moveDown = 48,
        moveRight = 175,
        moveLeft = 174,
        moveForward = 172,
        moveBack = 173,
        rotateRight = 313,
        rotateLeft = 312,
        increaseDistance = 83,
        reduceDistance = 84
    },

    blacklistedJobs = {
        'police'
    },

    whitelistedVehicles = {
        'police', 'police2'
    },


    props = {
        'prop_cctv_cam_01a',
        'prop_cctv_cam_01b',
        'prop_cctv_cam_05a'
    },

    blips = {
        enable = 'wl', -- 'wl' for wl jobs, 'all' for all players
        id = 184,
        scale = .8,
        color = 4,
        label = 'Radar'
    },

    commands = {
        {
            name = 'createradar',
            help = 'Create radar',
            permission = 'group.admin',
        },
        {
            name = 'editradar',
            help = 'Edit radar',
            permission = 'group.admin',
        }
    }
}
Logs = {
    enable = false,
    webhook = '',
    steamName = true,
    botName = 'Radar Log',
    colors = {
        ['info'] = 1209030,
        ['success'] = 5024796,
        ['error'] = 12980754,
    }
}
Utils = {}

Utils.Notification = function(title, description, type, duration)
    lib.notify({
        title = title,
        description = description,
        type = type,
        duration = duration
    })
end

function Utils.Dispatch()
    local PlayerCoords = GetEntityCoords(cache.ped)
    local PlayerHeading = GetEntityHeading(cache.ped)
    local PlayerVehicle = GetVehiclePedIsIn(cache.ped, false)

    -- here you can put your function for dispatch
end
Utils = {}

Utils.Notification = function(src, title, description, type, duration)
    TriggerClientEvent('ox_lib:notify', src, {
        title = title,
        description = description,
        type = type,
        duration = duration
    })
end

Utils.SendBill = function(targetId, job, reason, amount)
    if Config.billingType == 'esx_billing' then
        TriggerEvent('esx_billing:sendRadarBill', targetId, 'society_'..job, reason, amount)
    elseif Config.billingType == 'custom' then
        -- your event
    end
end
PreviousAdvanced Radar SystemNextSQL

Last updated 10 months ago