Config Files
Main Config
Config = {}
Config.Debug = false -- true = debug prints
Config.Language = 'pl' -- en / de / pl / fr / es / it / nl / ru / tr / ar
Config.canOpenTablet = function()
local playerState = LocalPlayer.state
if playerState.isDead or playerState.isCuffed then
return false
end
return true
end
Config.Permissions = {
['doj'] = {
['0'] = {
['add_citizen_license'] = true, ['remove_citizen_license'] = true,
['change_citizen_picture'] = true, ['add_citizen_note'] = true, ['delete_citizen_note'] = true,
['add_citizen_tag'] = true, ['delete_citizen_tag'] = true,
['fire_player'] = true, ['hire_player'] = true, ['promote_player'] = true,
['create_announcement'] = true, ['delete_announcement'] = true,
['change_company_picture'] = true,
['withdraw_money'] = true, ['deposit_money'] = true, ['account_balance'] = true,
['society_transactions'] = true, ['society_chart'] = true,
['charge_account'] = true, ['donate_account'] = true, ['save_account_note'] = true,
['create_inspection'] = true,
},
['1'] = {
['add_citizen_license'] = true, ['remove_citizen_license'] = true,
['change_citizen_picture'] = true, ['add_citizen_note'] = true, ['delete_citizen_note'] = true,
['add_citizen_tag'] = true, ['delete_citizen_tag'] = true,
['fire_player'] = true, ['hire_player'] = true, ['promote_player'] = true,
['create_announcement'] = true, ['delete_announcement'] = true,
['change_company_picture'] = true,
['withdraw_money'] = true, ['deposit_money'] = true, ['account_balance'] = true,
['society_transactions'] = true, ['society_chart'] = true,
['charge_account'] = true, ['donate_account'] = true, ['save_account_note'] = true,
['create_inspection'] = true,
},
['2'] = {
['add_citizen_license'] = true, ['remove_citizen_license'] = true,
['change_citizen_picture'] = true, ['add_citizen_note'] = true, ['delete_citizen_note'] = true,
['add_citizen_tag'] = true, ['delete_citizen_tag'] = true,
['fire_player'] = true, ['hire_player'] = true, ['promote_player'] = true,
['create_announcement'] = true, ['delete_announcement'] = true,
['change_company_picture'] = true,
['withdraw_money'] = true, ['deposit_money'] = true, ['account_balance'] = true,
['society_transactions'] = true, ['society_chart'] = true,
['charge_account'] = true, ['donate_account'] = true, ['save_account_note'] = true,
['create_inspection'] = true,
},
['3'] = {
['add_citizen_license'] = true, ['remove_citizen_license'] = true,
['change_citizen_picture'] = true, ['add_citizen_note'] = true, ['delete_citizen_note'] = true,
['add_citizen_tag'] = true, ['delete_citizen_tag'] = true,
['fire_player'] = true, ['hire_player'] = true, ['promote_player'] = true,
['create_announcement'] = true, ['delete_announcement'] = true,
['change_company_picture'] = true,
['withdraw_money'] = true, ['deposit_money'] = true, ['account_balance'] = true,
['society_transactions'] = true, ['society_chart'] = true,
['charge_account'] = true, ['donate_account'] = true, ['save_account_note'] = true,
['create_inspection'] = true,
},
}
}
Citizens Config
Config.Citizens = {}
Config.Citizens.Licenses = {
['weapon'] = 'Weapon License',
['driver'] = 'Driver License',
['business'] = 'Business License',
['aircraft'] = 'Aircraft License',
['boating'] = 'Boating License',
['fishing'] = 'Fishing License',
['hunting'] = 'Hunting License',
['mechanic'] = 'Mechanic License',
['taxi'] = 'Taxi License',
['lawyer'] = 'Lawyer License',
['doctor'] = 'Doctor License',
['real_estate'] = 'Real Estate License',
['pilot'] = 'Pilot License',
['firearm'] = 'Firearm License',
['security'] = 'Security License',
['tow'] = 'Tow License',
['news'] = 'News License',
['dmv'] = 'DMV License',
}
Courts Config
Config.Courts = {}
Config.Courts.UseJailSystem = false -- true = script will send automatically player to jail / false = script will not send player to jail
Employees Config
Config.Employees = {}
Config.Employees.Licenses = {
['weapon'] = 'Weapon License',
['driver'] = 'Driver License',
['business'] = 'Business License',
['aircraft'] = 'Aircraft License',
['boating'] = 'Boating License',
['fishing'] = 'Fishing License',
['hunting'] = 'Hunting License',
['mechanic'] = 'Mechanic License',
['taxi'] = 'Taxi License',
['lawyer'] = 'Lawyer License',
['doctor'] = 'Doctor License',
['real_estate'] = 'Real Estate License',
['pilot'] = 'Pilot License',
['firearm'] = 'Firearm License',
['security'] = 'Security License',
['tow'] = 'Tow License',
['news'] = 'News License',
['dmv'] = 'DMV License',
}
Logs Config
-- THIS FILE IS ONLY SERVER SIDE!
Config.Logs = {}
Config.Logs.Enabled = true -- true / false
Config.Logs.Webhook = '' -- Webhook URL only for Discord!
-- Go to fivemanage.com > create an account > create token for MEDIA > copy token and paste it here :)
Config.Logs.ApiKey = ''
Config.Logs.SendLog = function(playerId, message)
Citizen.CreateThread(function()
if not Config.Logs.Enabled then return end
local steamName, steamHex, discordId = 'Unknown', 'Unknown', 'Unknown'
if playerId then
steamName = GetPlayerName(playerId)
local identifiers = GetPlayerIdentifiers(playerId)
for i = 1, #identifiers do
if string.find(identifiers[i], 'steam:') then
steamHex = identifiers[i]
elseif string.find(identifiers[i], 'discord:') then
discordId = string.gsub(identifiers[i], 'discord:', '')
end
end
end
message = message..'\nID: '..(playerId or 'Server')..'\nSteam Name: '..steamName..'\nSteam HEX: '..steamHex..'\nDiscord: <@'..discordId..'>'
local embedData = { {
['title'] = 'Doj MDT',
['color'] = 14423100,
['footer'] = {
['text'] = "Doj MDT | pScripts | " .. os.date(),
['icon_url'] = "https://r2.fivemanage.com/xlufCGKYLtGfU8IBmjOL9/LOGO3.png"
},
['description'] = message,
['author'] = {
['name'] = "pScripts",
['icon_url'] = "https://r2.fivemanage.com/xlufCGKYLtGfU8IBmjOL9/LOGO3.png"
}
} }
PerformHttpRequest(Config.Logs.Webhook, nil, 'POST', json.encode({
username = 'pScripts',
embeds = embedData
}), {
['Content-Type'] = 'application/json'
})
end)
end
Last updated