Tools

server.cfg builder

Pick your framework and resources and get a server.cfg with everything starting in the right order, so libraries load before the framework and the framework loads before your scripts. Everything runs in your browser.

Framework

Needs ox_lib, oxmysql and ox_inventory.

Libraries

My scripts

Scripts from the store that run on Qbox. Their dependencies are added for you.

Server

server.cfg

# server.cfg generated with https://tomdev.xyz/tools/servercfg

## Network
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_maxclients 48
set onesync on

## Server listing
sv_hostname "My FiveM Server"
sets sv_projectName "My FiveM Server"
sets sv_projectDesc "A FiveM server"
sets tags "roleplay"
sets locale "en-GB"

## Keys (fill these in, never share them)
sv_licenseKey "changeme"        # https://portal.cfx.re
set steam_webApiKey "none"      # https://steamcommunity.com/dev/apikey
set mysql_connection_string "mysql://root@localhost/fivem?charset=utf8mb4"

## Default resources
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure hardcap

## Libraries
ensure oxmysql
ensure ox_lib
ensure pma-voice

## Framework (Qbox)
ensure qbx_core

## Framework add-ons
ensure ox_target
ensure ox_inventory

## Permissions
add_ace group.admin command allow
add_ace group.admin command.quit deny
# add_principal identifier.fivem:YOUR_ID group.admin

Replace changeme with your key from portal.cfx.re and set your database details. Never share a file with real keys in it.