Config
```lua
Config = {}
-- Target --
Config.TargetEnable = true -- if false ox_lib points will be turned on
Config.Target = "ox_target" -- qtarget / ox_target
Config.TargetRadius = 1.0
Config.TargetIcon = "fas fa-desktop" -- https://fontawesome.com/search
-- TextUI --
Config.TextUiRadius = 1.0
Config.Locations = {
["police"] = vector3(447.9464, -973.3188, 30.6896), -- Job name and Location
["cardealer"] = vector3(-1053.8466, -234.1517, 44.0210), -- Job name and Location
}
Config.BossRanks = { -- Ranks that can acces job dashboard
['boss'],
['recruit'],
}
Config.Unemployed = "unemployed" -- Name of unemployed job in database
Config.Text = { -- Translation
-- Notify --
["notif_hired"] = "You are hired!",
["notif_hired_src"] = "You successfully hired new employee!",
["notif_hired_fail"] = "You failed to hire new employee!",
["notif_hired_fail_2"] = "You failed to hire new employee, he is already somewhere employed!",
["notif_fired"] = "You are fired!",
["notif_fired_src"] = "You fired an employee!",
["notif_fired_fail"] = "You failed to fire an employee!",
["notif_promoted"] = "You are promoted!",
["notif_promoted_src"] = "You promoted an employee!",
["promoted_other"] = "You promoted xxan employee!",
["balance_deposit_succ"] = "You successfuly deposited: $",
["balance_deposit_fail"] = "You failed, you don\'t have enought money!",
["balance_withdraw_succ"] = "You have successfuly withdrawn: $",
["balance_withdraw_fail"] = "You failed, you don\'t have enought money in society!",
["no_acces"] = "You are not boss!",
-- Text UI --
['ui_open'] = '[E] - Open Boss Menu',
-- Target Text --
["target_open"] = "Open Boss Menu",
}
-- TextUI --
function ShowTextUI(msg)
lib.showTextUI(msg)
end
function HideTextUI()
lib.hideTextUI()
end
-- Notify --
function SendTextMessage(msg)
--SetNotificationTextEntry('STRING')
--AddTextComponentString(msg)
--DrawNotification(0,1)
--exports['okokNotify']:Alert('ADMIN PANEL', msg, 5000, 'info')
--exports['mythic_notify']:SendAlert('inform', msg)
--ESX.ShowNotification(msg)
lib.notify({
title = 'Info',
description = msg,
type = 'info'
})
end
-- Debug --
Config.Debug = false -- Use only in production mode
```
Last updated