Core librarySettings

Settings

The server.cfg settings every TR script shares: language, Discord logs, money accounts and which resources to use.

On this page

tr_core has no config file. Everything is optional and goes in server.cfg, above ensure tr_core.

Language

server.cfg
setr tr:locale "en"

The language for every TR script. Each script keeps its text in its own locales folder; add a file there to translate it.

Discord logs

server.cfg
set tr:webhook "https://discord.com/api/webhooks/..."

TR scripts send their logs to this Discord webhook. Every log names its channel at the bottom (for example security or money). To send one channel somewhere else, add a webhook for it:

server.cfg
set tr:webhook:security "https://discord.com/api/webhooks/..."

Dirty money

server.cfg
setr tr:account:dirty "black_money"

Which framework account TR scripts use for dirty money. ESX and QBCore have one already. Qbox has none by default, so on Qbox set this to the account you use, or dirty money reads as 0.

Choosing a resource yourself

tr_core finds your framework, inventory and other resources by itself, so you don't need any of these. They're here if you ever want to choose one yourself:

SettingValues
setr tr:frameworkqbx, esx, qb
setr tr:inventoryox_inventory, qb_inventory
setr tr:targetox_target, qb_target
setr tr:keyszyke_vehiclekeys, qbx_vehiclekeys, wasabi_carlock, mrnewb_vehiclekeys, renewed_vehiclekeys, qb_vehiclekeys, none
setr tr:fuelox_fuel, lc_fuel, cdn_fuel, ps_fuel, legacyfuel, none
setr tr:dispatchtk_dispatch, cd_dispatch3d, rcore_dispatch, core_dispatch, qs_dispatch, cd_dispatch, ps_dispatch, origen_police, lb_tablet, none
server.cfg
setr tr:inventory "ox_inventory"

Console output

server.cfg
setr tr:loglevel "info"

How much TR scripts print to the console: error, warn, info (the default) or debug. Use debug when support asks for it.

Still stuck? Open a ticket on Discord.