A simple whitelisted job for firefighters written in Typescript/Javascript for the QBCore Framework. Modify and extend for any other whitelisted job as desired.
- Clone repository into a local folder
- Open a command prompt, browse to the folder, then
npm install
- Modify as desired (See
config.ts
for configuation options)
Use npm run watch
to build the project on the fly while you are modifying. Watch the output for warnings and errors.
- Use
npm run build
. This will build the client/server files and put them in thedist/
directory. - Create a folder on your server
resources/nugz-firefighters
, or your preferred path - Upload the
fxmanifest.lua
file anddist
folder into thenugz-firefighters
directory - Add
start nugz-firefighters
to your resources.cfg file - Enjoy!
Due to the length of time it takes for the server to build the project with webpack/yarn, it's advised to NOT build this server side, but instead follow the instructions in 'Putting into Production' above. However, if you'd rather:
git clone
this repository into yourresources/folder-of-your-choice/nugz-firefighters
- cd into that directory and run
npm install
- Modify the
fxmanifest.lua
file and add:
dependency 'yarn'
dependency 'webpack'
webpack_config 'webpack.config.js'
- Configure how you'd like
config.ts
- Restart your server
This resource is MIT licensed. Please make sure you give proper credits and include this license.