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
Last updated