- Put the
ncore_getawayfolder intoresources/[ncore](create the[ncore]folder if you do not have one yet). - Optional: import
sql/ncore_getaway.sql. With oxmysql running the table is also created automatically on the first start. -
Add these lines to
server.cfg, after your framework:server.cfgset onesync on ensure oxmysql ensure ncore_hud ensure ncore_chat ensure ncore_inventory ensure ncore_getaway add_ace group.admin getaway.admin allow # setr lr:locale huLeave out any optional resource you do not use. Remove the
#in front ofsetr lr:localeonly if you want one fixed language (en,hu,de,fr,es,pt-br,pl,tr,ru,it,csorsk). Without it the language is picked automatically. - Check
ConfigServer.Police.Jobsinconfig/config_server.lua. The defaults arepolice,sheriff,trooper,bcso,lspdandsasp. Add your own police job name if it is different. On a server without a framework, give your police thegetaway.policeACE instead. - Restart the server. The console shows the framework, the storage (oxmysql or JSON) and the language it picked.
- Test as an admin with
/getawayadmin spawn getaway_00, then/getawayadmin tp getaway_00to jump there with your car. Hold the horn next to the robber.
Important#
- Required: OneSync.
- Detected automatically: ESX, QBCore, QBox,
oxmysql,ncore_hud,ncore_chat,ncore_inventory,ncore_npc_pro,ox_lib,ox_inventory, and the dispatch resourcesps-dispatch,cd_dispatch,qs-dispatch,core_dispatchandlinden_outlawalert. - Without oxmysql, data is saved as JSON: the
datafolder must be writable. Back it up before replacing the resource folder. - On a server with no framework and no
ncore_inventory, setConfigServer.Rewards.CustomPayout, or payouts are only logged. - 15 seconds after start the console lists any other resource that switches police off, with the file and how to fix it.
- If something doesn't work, the "FAQ and troubleshooting" table in
README.mdcovers the usual causes. - Leave
Config.Debug = falseon a live server. You can also turn debug on fromserver.cfgwithsetr ncore_getaway:debug truewithout touchingconfig.lua. The convar wins over the config value.
