BIT - DOCUMENTATION
  • BIT DOCUMENTATION
  • โ„น๏ธINFORMATION
    • Licensing System
    • Terms of Service
    • Common issues
    • Support
  • โ“HOW TO...
    • Change inventory
      • Add Item
      • Remove Item
    • How to update an asset
    • How to add items
    • Items images
    • Change notifications
  • ๐Ÿ–ฅ๏ธPAID SCRIPTS
    • ๐Ÿ’ณ BIT-Licenses
      • Installation
      • Commands
      • Triggers & Exports
      • Items
    • ๐Ÿฆ  BIT-Diseases
      • Installation
      • Triggers, Export and Commands
    • ๐Ÿ”“ BIT-Unlock
      • Installation
      • Trigger
      • How it works?
    • ๐Ÿ”Š BIT-Radio
      • Installation
      • Configuration
      • Trigger
      • Items
    • ๐Ÿ’Š BIT-DrugsCreator
      • Installation
      • Configuration
      • Trigger
      • Target
    • โš ๏ธ BIT-Notifications
      • Installation
      • Configuration
      • Trigger
    • ๐Ÿ–๏ธBIT-InteractiveCity
      • Installation
      • Dependencies
      • Configuration
      • Actions
      • Target
    • ๐Ÿš˜ BIT-UsedCars
      • Installation
      • Dependencies
      • Configuration
      • Target
    • ๐Ÿ—‘๏ธ BIT-GarbageJob
      • Installation
      • Dependencies
      • Configuration
      • Target
      • Items
    • ๐Ÿ› ๏ธ BIT-AdvancedTasks
      • Installation
      • Dependencies
      • Custom Voices
      • Custom NPC
      • Rewards
      • Target
    • ๐Ÿ† BIT-Rewards
      • Installation
      • SQL
      • Configuration
      • Trigger
    • ๐Ÿ“Š BIT-Scoreboard
      • Installation
      • Configuration
    • ๐Ÿ›๏ธ BIT-Stores
      • Installation
      • Example Items
      • Configuration
      • Create a polyzone
      • Add Items
    • ๐Ÿ”ช BIT-Gangs
      • Installation
      • SQL and Items
      • Configuration
      • Triggers and Exports
    • ๐Ÿ’ผ BIT-Jobs
      • Installation
      • SQL and Items
      • Create Jobs
      • ProgressBar
      • Configuration
      • Add Jobs
      • Random position
      • Triggers
      • Possible mistakes
    • ๐Ÿจ BIT-Motels
      • Installation
      • MLO
      • SQL
      • Configuration
      • Triggers
    • ๐Ÿ‘— BIT-ClothingShop v.2
      • Installation
      • Create Images
      • Image Resolution
      • Debug & Test
      • SQL
      • Configuration
      • Possible mistakes
    • โœจ BIT-Creator
      • Installation
      • SQL
      • Configuration
      • Triggers
    • ๐Ÿข BIT-Business 2.0
      • Installation
      • SQL
      • Configuration
      • Colors
      • Income
      • Payment Methods
    • ๐Ÿš— BIT-Garage
      • Installation
      • Dependencies
      • Configuration
      • Functions
      • Jobs/Gangs
      • Triggers
      • Commands
      • Possible mistakes
    • ๐Ÿš˜ BIT-VehControl
      • Installation
      • Dependencies
      • Configuration
      • Triggers
      • Possible mistakes
    • ๐Ÿพ BIT-Pets
      • Installation
      • SQL
      • Dependencies
      • Configuration
      • Target
      • Triggers
      • Questions
      • Possible mistakes
    • ๐Ÿ‘ฎโ€โ™‚๏ธ BIT-PoliceMDT
      • Installation
      • SQL
      • Configuration
      • Dependencies
      • Triggers
      • Possible mistakes
    • โ›ฝ BIT-Fuel
      • Installation
      • Configuration
      • Exports
      • Questions
    • ๐Ÿ’ฐ BIT-Crypto
      • Installation
      • SQL
      • Configuration
      • Triggers & Exports
      • Questions
    • ๐Ÿš™ BIT-Carrental
      • Installation
      • Configuration
    • ๐Ÿ“ป BIT-Carradio
      • Installation
      • Dependencies
      • Configuration
    • ๐Ÿ“ BIT-Reportsystem
      • Installation
      • SQL
      • Configuration
      • Questions
    • ๐ŸšฆBIT-Drivingschool
      • Installation
      • SQL
      • MLO
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • โš“ BIT-BoatSchool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • ๐Ÿ›ฉ๏ธ BIT-Flightschool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • ๐Ÿšœ BIT-Dealership
      • Installation
      • Configuration
      • Possible mistakes
    • ๐Ÿช™ BIT-Coin System
      • Installation
      • Configuration
      • Trigger
    • ๐Ÿฆ BIT-Bank
      • Installation
      • SQL
      • Configuration
    • ๐Ÿ–ฅ๏ธ BIT-HUD
      • Installation
      • Configuration
      • Triggers
    • ๐ŸŽฎ BIT-Battlepass 3
      • Installation
      • SQL
      • Configuration
      • Commands
      • Triggers
      • Questions
      • Possible mistakes
    • ๐Ÿ“‹ BIT-Pausemenu
      • Installation
      • SQL
      • Configuration
    • ๐Ÿ“ฆ BIT-TreasureHunting
      • Installation
      • Dependencies
      • Configuration
      • Target
Powered by GitBook
On this page
  1. PAID SCRIPTS
  2. ๐Ÿ‘ฎโ€โ™‚๏ธ BIT-PoliceMDT

Configuration

Don't touch this lines

Config, DBHouses, DBCars, Lang, Noti = {}, {}, {}, {}, {}

CONFIGURATION FILE

Config, DBHouses, DBCars, Lang, Noti = {}, {}, {}, {}, {}

--Dependencies:
-- ยท screenshot-basic

-- $$$$$$\   $$$$$$\  $$\   $$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ $$$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ 
--$$  __$$\ $$  __$$\ $$$\  $$ |$$  _____|\_$$  _|$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |
--$$ /  \__|$$ /  $$ |$$$$\ $$ |$$ |        $$ |  $$ /  \__|$$ |  $$ |$$ |  $$ |$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |
--$$ |      $$ |  $$ |$$ $$\$$ |$$$$$\      $$ |  $$ |$$$$\ $$ |  $$ |$$$$$$$  |$$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |
--$$ |      $$ |  $$ |$$ \$$$$ |$$  __|     $$ |  $$ |\_$$ |$$ |  $$ |$$  __$$< $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ |
--$$ |  $$\ $$ |  $$ |$$ |\$$$ |$$ |        $$ |  $$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |
--\$$$$$$  | $$$$$$  |$$ | \$$ |$$ |      $$$$$$\ \$$$$$$  |\$$$$$$  |$$ |  $$ |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |
 --\______/  \______/ \__|  \__|\__|      \______| \______/  \______/ \__|  \__|\__|  \__|  \__|   \______| \______/ \__|  \__|

 --Use "esx" or "qb"
Config.Framework = "qb"
--If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = ""
--Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
--Select your database connector oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"
--Jobs that will have access to the script
Config.authorizedJobs = {
    ["police"] = true,
    ["sheriff"] = true,
    ["otherjob"] = true,
}
--Command to open the tablet 
Config.Command = "mdt"
--Key to open the tablet without using command
Config.OpenKey = 344
--Discord webhook required for photos taken of criminals
Config.DiscordWebhook = ""
--Webhook where the police will request the deletion of police records
Config.DiscordWebhookCardElimination = ""
--Command used by the administration to delete police records
Config.cardEliminationCommand = "drecord"
--If you want the animation of the tablet to be displayed
Config.showAnimation = true
--if you use a custom script for the phone set to true and fill in the function below
Config.useCustomPhoneScript = false
--Set your server currency
Config.currency = "$"

--$$\   $$\  $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\   $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\ 
--$$$\  $$ |$$  __$$\\__$$  __|\_$$  _|$$  _____|\_$$  _|$$  __$$\ $$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |
--$$$$\ $$ |$$ /  $$ |  $$ |     $$ |  $$ |        $$ |  $$ /  \__|$$ /  $$ |  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |
--$$ $$\$$ |$$ |  $$ |  $$ |     $$ |  $$$$$\      $$ |  $$ |      $$$$$$$$ |  $$ |     $$ |  $$ |  $$ |$$ $$\$$ |
--$$ \$$$$ |$$ |  $$ |  $$ |     $$ |  $$  __|     $$ |  $$ |      $$  __$$ |  $$ |     $$ |  $$ |  $$ |$$ \$$$$ |
--$$ |\$$$ |$$ |  $$ |  $$ |     $$ |  $$ |        $$ |  $$ |  $$\ $$ |  $$ |  $$ |     $$ |  $$ |  $$ |$$ |\$$$ |
--$$ | \$$ | $$$$$$  |  $$ |   $$$$$$\ $$ |      $$$$$$\ \$$$$$$  |$$ |  $$ |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |
--\__|  \__| \______/   \__|   \______|\__|      \______| \______/ \__|  \__|  \__|   \______| \______/ \__|  \__|

Noti.error = "error"
Noti.success = "check"
Noti.time = 5000

function notifications(notitype, message, time)
    --Custom notification trigger
end

--$$\        $$$$$$\  $$\   $$\  $$$$$$\  $$\   $$\  $$$$$$\   $$$$$$\  $$$$$$$$\ 
--$$ |      $$  __$$\ $$$\  $$ |$$  __$$\ $$ |  $$ |$$  __$$\ $$  __$$\ $$  _____|
--$$ |      $$ /  $$ |$$$$\ $$ |$$ /  \__|$$ |  $$ |$$ /  $$ |$$ /  \__|$$ |      
--$$ |      $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ |  $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\    
--$$ |      $$  __$$ |$$ \$$$$ |$$ |\_$$ |$$ |  $$ |$$  __$$ |$$ |\_$$ |$$  __|   
--$$ |      $$ |  $$ |$$ |\$$$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |  $$ |$$ |      
--$$$$$$$$\ $$ |  $$ |$$ | \$$ |\$$$$$$  |\$$$$$$  |$$ |  $$ |\$$$$$$  |$$$$$$$$\ 
--\________|\__|  \__|\__|  \__| \______/  \______/ \__|  \__| \______/ \________|

Lang.deleted = "The mugshot has been successfully deleted"
Lang.saved = "The mugshot has been saved"

--$$$$$$$\   $$$$$$\ $$$$$$$$\  $$$$$$\  $$$$$$$\   $$$$$$\   $$$$$$\  $$$$$$$$\ 
--$$  __$$\ $$  __$$\\__$$  __|$$  __$$\ $$  __$$\ $$  __$$\ $$  __$$\ $$  _____|
--$$ |  $$ |$$ /  $$ |  $$ |   $$ /  $$ |$$ |  $$ |$$ /  $$ |$$ /  \__|$$ |      
--$$ |  $$ |$$$$$$$$ |  $$ |   $$$$$$$$ |$$$$$$$\ |$$$$$$$$ |\$$$$$$\  $$$$$\    
--$$ |  $$ |$$  __$$ |  $$ |   $$  __$$ |$$  __$$\ $$  __$$ | \____$$\ $$  __|   
--$$ |  $$ |$$ |  $$ |  $$ |   $$ |  $$ |$$ |  $$ |$$ |  $$ |$$\   $$ |$$ |      
--$$$$$$$  |$$ |  $$ |  $$ |   $$ |  $$ |$$$$$$$  |$$ |  $$ |\$$$$$$  |$$$$$$$$\ 
--\_______/ \__|  \__|  \__|   \__|  \__|\_______/ \__|  \__| \______/ \________|

--TableName: by default use "owner_vehicles" on esx or "player_vehicles" on qb
DBCars.tableName = 'owned_vehicles'
--Identifier: by default use "owner" on esx or "citizenid" on qb
DBCars.playerIdentifierColumn = 'owner'

Config.useHouses = false
DBHouses.tableName = 'player_houses'
DBHouses.playerIdentifierColumn = 'identifier'
--If you activate the following option you will have to edit the customHouseSystem function in the Functions section
Config.useCustomHouseSystem = false


--$$$$$$$$\ $$$$$$\ $$\   $$\ $$$$$$$$\  $$$$$$\  
--$$  _____|\_$$  _|$$$\  $$ |$$  _____|$$  __$$\ 
--$$ |        $$ |  $$$$\ $$ |$$ |      $$ /  \__|
--$$$$$\      $$ |  $$ $$\$$ |$$$$$\    \$$$$$$\  
--$$  __|     $$ |  $$ \$$$$ |$$  __|    \____$$\ 
--$$ |        $$ |  $$ |\$$$ |$$ |      $$\   $$ |
--$$ |      $$$$$$\ $$ | \$$ |$$$$$$$$\ \$$$$$$  |
--\__|      \______|\__|  \__|\________| \______/

TrafficFines = {
    ["RUNNING A RED LIGHT"] = {price = 200},
    ["INDEPENDENT TURN"] = {price = 200},
    ["OVER SPEED"] = {price = 300},
    ["NOT HAVE ITV"] = {price = 500},
    ["PARKED WRONGLY"] = {price = 375}
}

GeneralFines = {
    ["INSULTING AN OFFICER"] = {price = 300},
    ["CONTEMPT OF COURT"] = {price = 300},
    ["RUN FROM THE POLICE"] = {price = 1000},
    ["ATTEMPTED MURDER"] = {price = 1500},
    ["MURDER"] = {price = 3000},
    ["ILLEGAL WEAPONS"] = {price = 1575},
    ["WHITE WEAPON"] = {price = 750},
    ["NO WEAPON LICENSE"] = {price = 1500},
    ["KIDNAPPING"] = {price = 5000},
    ["VEHICLE THEFT"] = {price = 250},
    ["THEFT OF CLOTHING"] = {price = 2500},
    ["BANK THEFT"] = {price = 5000},
    ["ENTER PRIVATE AREA"] = {price = 1500},
    ["DRUGS"] = {price = 75},
    ["AFFRAY"] = {price = 250},
    ["AGGRESSION"] = {price = 150},
}


--$$$$$$$$\ $$\   $$\ $$\   $$\  $$$$$$\ $$$$$$$$\ $$$$$$\  $$$$$$\  $$\   $$\  $$$$$$\  
--$$  _____|$$ |  $$ |$$$\  $$ |$$  __$$\\__$$  __|\_$$  _|$$  __$$\ $$$\  $$ |$$  __$$\ 
--$$ |      $$ |  $$ |$$$$\ $$ |$$ /  \__|  $$ |     $$ |  $$ /  $$ |$$$$\ $$ |$$ /  \__|
--$$$$$\    $$ |  $$ |$$ $$\$$ |$$ |        $$ |     $$ |  $$ |  $$ |$$ $$\$$ |\$$$$$$\  
--$$  __|   $$ |  $$ |$$ \$$$$ |$$ |        $$ |     $$ |  $$ |  $$ |$$ \$$$$ | \____$$\ 
--$$ |      $$ |  $$ |$$ |\$$$ |$$ |  $$\   $$ |     $$ |  $$ |  $$ |$$ |\$$$ |$$\   $$ |
--$$ |      \$$$$$$  |$$ | \$$ |\$$$$$$  |  $$ |   $$$$$$\  $$$$$$  |$$ | \$$ |\$$$$$$  |
--\__|       \______/ \__|  \__| \______/   \__|   \______| \______/ \__|  \__| \______/

function GetUsername(xPlayer)
    if Config.Framework == "esx" then
        local name = xPlayer.getName()
        return name
    elseif Config.Framework == "qb" then
        local name = xPlayer.PlayerData.name
        return name
    end
end

function customPhoneScript()
    --
    return phone
end

function customHouseSystem(identifier)
    --This is only an example if you want to recover properties from
    local loadFile= LoadResourceFile("esx_property", "houses.json")
    local extract = {}
    extract = json.decode(loadFile)
    local houses = ""
    for k, v in pairs(extract) do
        if k == identifier then
            houses = houses..'<div class="citizensbox-info-houseitem"><!--<span class="citizensbox-info-houseitem-number">2651</span>--><span class="citizensbox-info-houseitem-street">ยท '..v..'</span></div>'
        end
    end
    return houses
end

PreviousSQLNextDependencies

Last updated 1 year ago

๐Ÿ–ฅ๏ธ