๐ป Installation
Install devhub_lib
Download and install the required library and configure it according to your framework.
Download https://github.com/DEVHUB-GG/devhub_lib or use command
git clone https://github.com/DEVHUB-GG/devhub_lib.gitInstall devhub_grid
Train Heist uses devhub_grid for the in-vehicle trunk grid that the looted cargo is loaded into. Install it from your DevHub keymaster and ensure it before devhub_trainHeist.
Ensure oxmysql
Train Heist depends on oxmysql. It is a base resource on virtually every server, so it is normally already running โ just make sure it is ensured before devhub_trainHeist.
Install resource from keymaster
- Download the TRAIN HEIST script file from keymaster.
Start resources
Move the files to the resources folder on your server and add the following lines to your server.cfg in the correct order:
ensure oxmysql
ensure devhub_lib
ensure devhub_grid
ensure devhub_trainHeist[OPTIONAL] Add the devhub_laptop Crime Traders integration
Train Heist registers itself as a Crime Traders task in the devhub_laptop. If you use the laptop, ensure it before devhub_trainHeist so the app loads first:
ensure oxmysql
ensure devhub_lib
ensure devhub_grid
ensure devhub_laptop
ensure devhub_trainHeistThe integration is toggled with Shared.LaptopConfig.enabled in configs/shared.lua. Players can also join the queue by talking to the in-world Rail Network Contact NPC, so the laptop is not strictly required.
[OPTIONAL] Add the devhub_skillTree integration
Train Heist can award XP and apply skill perks through the Crime Traders skill tree in the laptop (devhub_skillTree). Enable it with Shared.SkillTree.enabled and ensure devhub_skillTree before devhub_trainHeist. Without it everything below the skill tree quietly no-ops.
Restart your server
DO NOT CHANGE RESOURCE NAME