This repository contains open-source code for a GTAV mod/game called Time Served.
Join the community Discord to connect with us.
Contributions are welcome. Here are instructions for setting up a local development environment:
- Install Docker Desktop.
git clonethis repository into a local directory of your choice.- Obtain your own license key from the FiveM Keymaster.
- Create your local config by copying
cfg/server.orig.cfgtocfg/server.cfg. - Modify
cfg/server.cfgand add your FiveM license key at the bottom where it saysMY_LICENSE_KEY. - Use Docker Compose to execute
compose upon thecompose.yamlfile.- If using VSCode, the Docker plugin adds a right-click option to the
compose.yamlfile.
- If using VSCode, the Docker plugin adds a right-click option to the
- In your browser, navigate to
http://localhost:40125. You will see the txAdmin setup screen. - Inspect the logs of the resulting
tsrp-fivemcontainer to find the pin number to setup txAdmin. - Complete txAdmin setup and start the FiveM server.
- Select "Local Server Data" for Deployment Type.
- Input
/fivem/server-datafor Local Server Data. - Input
config/server.cfgfor Server CFG File.
- Open your FiveM client and connect to localhost on port
30120.
Resources in src are linked into the running container as a volume, meaning changes will be reflected immediately.
The base FiveM-provided and mysql-async resources are linked at build time, meaning pulling in any new changes is as easy as rebuilding the image. In the future, we will probably need to change this to support a scenario where we want to fork or modify the base resources (i.e. chat). For now, it's a 1 or 0 choice to use or not use any of them which we can control from server.cfg.
Learn about development conventions by looking at the example resource template. The README files inside individual resources provide more detailed developer instructions for what the code does and how to use it.