For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Before you start, make sure you're logged into the CFX portal. This ensures you can download the asset and receive future updates.

Downloading Dependencies

Dependencies are required before you start op-mechanic.


Server.cfg

Start dependencies before our script. Framework and inventory must also be running.

ensure oxmysql
ensure ox_lib
ensure fivem-freecam
ensure fivem-functional-flatbed
ensure op-mechanic-props
ensure op-mechanic

Database

On first start the script creates its own tables automatically (ServerConfig.DisableAutoSql = false).

Set ServerConfig.DisableAutoSql = true in config/ServerConfig.lua only if you manage schema yourself.


First Setup

1

Create items

Create Items
2

Grant Mechanic Admin

Follow How to add player to Mechanic Admin, then open /mechanicadmin.

How to add player to Mechanic Admin
3

Create a shop

Follow How to setup the first shop. Link a real framework job (for example mechanic).

How to setup the first shop
4

Configure locale / currency

Edit config/MainConfig.lua (Config.Locale, Config.Currency) and check other files listed in Config Files.

Last updated