Get Started
This documentation guides you through setting up a server or getting started loading the core into your own resources for development.
Introduction
The TMC FiveM framework is a popular roleplay server framework for FiveM. It provides a fast, flexible, modular & optimised base for developing custom GTA RP servers.
The TMC framework makes use of a feature called Kuzzle. You can find more about it here: Kuzzle. Make sure you have your Kuzzle instance created prior to creating your server. To save you hassle you can purchase a pre-made Kuzzle instance here: TMC Kuzzle Index.
Creating a server
Creating a TMC server is simple! Once you've purchased the framework from TMC's Tebex store you can get started.
Follow the CFX guide to setting up a server using txAdmin.
When choosing a template select "Remote URL Template" and enter:
https://tmc.bj/recipe
.Follow the instructions and continue to set up your server.
You will be prompted to fill in additional variables for the template to use. Some helpful information can be found below:
server_type
: This tells the TMC framework what type of server you are running. This helps disable things such as hunger and thirst in the dev servers. Valid values areDEV
&LIVE
.kuzzle_host
: This is the public host domain/IP of your Kuzzle server.kuzzle_port
: This is the port you connect to the Kuzzle instance on. If you've proxied the Kuzzle instance this will be either80
or443
depending on your SSL status.kuzzle_ssl
: This should be1
or0
to indicate if SSL should be enabled. We highly recommend setting up SSL for security.kuzzle_index
: The Kuzzle index to connect to.kuzzle_key
: The API Key used by the server to connect to Kuzzle. This should not be shared.kuzzle_playerProfile
: The name of the profile created in Kuzzle that will be assigned to the player credentials in order to access Kuzzle data.
Once the server is up and running you'll need to download your
tmc2-base
asset from https://portal.cfx.re/ and extract it into your[resources]
folder.Restart the server and get started!
Make sure to let yarn
run fully before restarting the server. It may take multiple restarts to get the server up and running between steps.
Loading the framework
The core object allows you access to all the helper functions TMC contains.
We recommend loading the TMC core object from within a "shared" script (one that is available to both your server and client scripts. I.e. a config.lua
).
Last updated