Configuration

Commands

List of useful commands for the basic functions of your server using our asset, you can execute them using ExecuteCommand or read them informatively.

1. Events

you have more than one event in this config, you have a client and server events.

OpenMdtEvent = 'mdt:client:openmetdash', -- Open MDT Event (client)
JoinRadioEvent = 'l2s-policehub:client:JoinChannel', -- Join radio frequency event (client) args : channel number
ActivePriorityEvent = 'l2s-radialmenu:Server:startPrio',-- Active Priority Event (Server) args : time 
StopPriorityEvent = 'l2s-radialmenu:Server:stopPrio', -- Stop Priority Event (Server)

2. Webhook

Our webhook for Discord must be added. If you don't know how to receive a webhook, it's simple and we walk you through it in the video below. To ensure you don't miss any steps, pay close attention:

Config['WebHooks'] = {
    ['ScreenShots'] = '',
    ['FlagPlate'] = '',
    ['OfficerActions'] = '',
    ['GlobalActions'] = '',
    ['Wings'] = '',
}

3. Notifications

Here you can edit the text of each notifications.

Config['Notifications'] = { -- Script Notifications
    [1] = 'The location is placed on the map',
    [2] = "The officer doesn't have a body cam",
    [3] = 'The officer removed the body cam',
    [4] = 'The officer is not connected to any channel',
    [5] = 'You Dont Have a Radio',
    [6] = 'this command is only for police',
    [7] = 'You cant see yourself',
    [8] = 'you cant send msg to yourself',
    [9] = 'you cant join your self channel',
    [10] = 'The officer is watching another officer',
    [11] = 'Your spectating another officer',
    [12] = 'Break duty activated',
    [13] = 'Break duty deactivated',
    [14] = 'Busy duty activated',
    [15] = 'Busy duty deactivated',
    [16] = 'vehicle is already flagged',
    [17] = 'Your are now on duty',
    [18] = 'Your are now off duty',
    [19] = 'Dispatcher Mode : On',
    [20] = 'Dispatcher Mode : Off',
}

4. WaitTimeout

This part For only development Depends on the strength of your server and the number of players, dont touch if you dont know what is this.

Config['WaitTimeout'] = { -- DONT TOuch if you dont know what is this
    Normal = 11000, -- Wait Time if the player 
    Opeaned = 7000, -- Wait Time if player opeand list or dashboard
    ToOneOfficer = 200, -- its add time out to oneofficer
}

5. Wings

l2s-policehub has a advanced system to add Officers Wings, you can change the name, shortname and the photo of each wing.

Config['Wings'] = { -- Officers Wings
    [1] = {
        name = 'Air-1',
        shortname = 'AIR',
        image = 'https://cdn.discordapp.com/attachments/817128482806300703/880355338149314630/Air_Cert.png',
        ifhave = false,
    },
    [2] = {
        name = 'Highwaymen',
        shortname = 'HWN',
        image = 'https://cdn.discordapp.com/attachments/817128482806300703/880355340384878592/Backgroundxxxxxxxxx.png',
        ifhave = false,
    },
    [3] = {
        name = 'SWAT',
        shortname = 'SWT',
        image = 'https://cdn.discordapp.com/attachments/817128482806300703/880355351751446558/SWAT_Cert.png',
        ifhave = false,
    },
    [4] = {
        name = 'Basic Field Training',
        shortname = 'BFT',
        image = 'https://cdn.discordapp.com/attachments/817128482806300703/880355343333466182/FTO_Cert.png',
        ifhave = false,
    },
    [5] = {
        name = 'Interceptor',
        shortname = 'INC',
        image = 'https://cdn.discordapp.com/attachments/817128482806300703/880355347280330804/Interceptor_Cert.png',
        ifhave = false,
    },
    [6] = {
        name = 'Motorcycle',
        shortname = 'MC',
        image = 'https://cdn.discordapp.com/attachments/793201235909935124/938165882276954152/Motorcycle_Cert.png',
        ifhave = false,
    },
    [7] = {
        name = 'K9 Unit',
        shortname = 'K9',
        image = 'https://cdn.discordapp.com/attachments/817128482806300703/880355350325366844/K9_Cert.png',
        ifhave = false,
    },
    [8] = {
        name = 'CID',
        shortname = 'CID',
        image = 'https://cdn.discordapp.com/attachments/817128482806300703/880355342385569842/CID_Cert.png',
        ifhave = false,
    },
}

6. Security Cameras

Here you have the Security Cameras setting, if you wanna change or add a area you must to add a new table and do you settings.

Groups : station, bank, store, speedcam, gunstores, others

Colors : green, blue, red, pink, purple, fst8, gray, black, aqua, orange, yellow

Config.SecurityCameras = { -- All Cams
    [1] = { -- Area 1
        name = 'Pacific Bank', -- Area Name
        color = 'fst8', -- Area Color
        tab = 'bank', -- Area Group
        x = 244.94984436035, y = 226.16044616699, z = 109.7971572876, -- Area Coords
        cams = { -- Area Cams
            [1] = {label = "#1", x = 244.94984436035, y = 226.16044616699, z = 109.7971572876, r = {x = -25.0, y = 0.0, z = 256.05}, canRotate = true, isOnline = true},
            [2] = {label = "#2", x = 232.86, y = 221.46, z = 107.83, r = {x = -25.0, y = 0.0, z = -140.91}, canRotate = true, isOnline = true},
            [3] = {label = "#3", x = 253.98440551758, y = 222.27117919922, z = 98.158882141113, r = {x = -21.0, y = 0.0, z = 251.87}, canRotate = true, isOnline = true},
            [4] = {label = "#4", x = 253.98440551758, y = 222.27117919922, z = 98.158882141113, r = {x = -21.0, y = 0.0, z = 66.87}, canRotate = true, isOnline = true},
            [5] = {label = "#5", x = 227.95289611816, y = 236.08137512207, z = 98.7, r = {x = -35.0, y = 0.0, z = 208.99}, canRotate = true, isOnline = true},
        }
    },
    [2] = {
        name = 'Paleto Bank',
        color = 'fst8',
        tab = 'bank',
        x = -102.37850189209, y = 6475.5400390625, z = 32.739533233643,
        cams = {
            [1] = {label = "#1", x = -102.37850189209, y = 6475.5400390625, z = 32.739533233643, r = {x = -12.0, y = 0.0, z = 171.96}, canRotate = true, isOnline = true},
            [2] = {label = "#2", x = -100.22701263428, y = 6465.3413085938, z = 33.20520401001, r = {x = -23.0, y = 0.0, z = 89.46}, canRotate = true, isOnline = true},
            [3] = {label = "#3", x = -95.36735534668, y = 6461.1240234375, z = 32.825965881348, r = {x = -23.0, y = 0.0, z = 86.46}, canRotate = true, isOnline = true},
        }
    },
    [3] = {
        name = 'Union Bank', 
        color = 'fst8',
        tab = 'bank',
        x = -11.390551567078, y = -697.37561035156, z = 17.531019592285,
        cams = {
            [1] = {label = "#1", x = -11.390551567078, y = -697.37561035156, z = 17.531019592285, r = {x = -12.0, y = 0.0, z = 320.1220703125}, canRotate = true, isOnline = true},
            [2] = {label = "#2", x = -1.5615615844727, y = -681.14703369141, z = 17.531019592285, r = {x = -23.0, y = 0.0, z = 333.25225830078}, canRotate = true, isOnline = true},
            [3] = {label = "#3", x = 10.284967422485, y = -672.3681640625, z = 17.531019592285, r = {x = -23.0, y = 0.0, z = 33.473114013672}, canRotate = true, isOnline = true},
        }
    },
    [4] = {
        name = 'Fleeca Bank Hawick Ave Alta',
        color = 'fst8',
        tab = 'bank',
        x = 309.341, y = -281.439, z = 55.88,
        cams = {
            [1] = {label = "#1", x = 310.80212402344, y = -276.46032714844, z = 56.164569854736, h = 167.72125244141, r = {x = -35.0, y = 0.0, z = 167.72125244141}, canRotate = true, isOnline = true},
            [2] = {label = "#2", x = 309.341, y = -281.439, z = 55.88, r = {x = -35.0, y = 0.0, z = -146.1595}, canRotate = true, isOnline = true},
            [3] = {label = "#3", x = 314.20114135742, y = -289.39883422852, z = 56.143100738525, h = 27.567405700684, r = {x = -35.0, y = 0.0, z = 23.531772613525}, canRotate = true, isOnline = true},
        }
    },
    [5] = {
        name = 'Fleeca Bank Legion Square',
        color = 'fst8',
        tab = 'bank',
        x = 144.871, y = -1043.044, z = 31.017,
        cams = {
            [1] = {label = "#1", x = 146.45213317871, y = -1038.0847167969, z = 31.367851257324, h = 243.78932189941, r = {x = -35.0, y = 0.0, z = 243.78932189941}, canRotate = false, isOnline = true},
            [2] = {label = "#2", x = 144.871, y = -1043.044, z = 31.017, r = {x = -35.0, y = 0.0, z = -143.9796}, canRotate = false, isOnline = true},
            [3] = {label = "#3", x = 149.93869018555, y = -1050.9384765625, z = 31.34641456604, h = 13.458920478821, r = {x = -35.0, y = 0.0, z = 13.458920478821}, canRotate = false, isOnline = true},
        }
    },

    --more than 70 one

7. settings

Here the main settings of the script.

This is the your core export name :

Core = 'l2s-core', -- Core Export

Here you can change ui settings, Header Menu Text in Officers List and ui color, also the ui key to open :

MenuText = 'Police Hub', -- Header Menu Text in Officers List
    UIColor = '#1998bd',
    NuiKey = 'F11', -- Nui Button (Your can change it on game)

Here the police settings :

OfficerPoints = 'officalrep', -- Officers Meatadata Points if you dont have add in qb-core/server/player.lua
    BossGrade = 10, -- Grade 10 and upper can update wings
    AmbulanceJob = 'ambulance', -- Ambulance Job Name
    PoliceWebsite = 'https://docs.google.com/spreadsheets/d/1fRRQkgI1MxfUbn6WVHDLv7bWtd0RfqTZZblGtLINefY/edit#gid=1314021891', -- Your server police website or officers table
    SpeedType = 'KMH', -- KMH/MPH
    TabletAnim = true, -- Tablet prop when the officer open dashboard 
    StreetMouse = false, -- Shows the street name when you place the mouse on any point of the map    https://prnt.sc/SCcnDtah4o7L
    PoliceJobs = {
        ['police'] = true,
        ['sheriff'] = false,
    },

Last updated

2023 - 2024 All rights reserved