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, aboveensure 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: