GR1M Docs

Mech

A full mechanic system: job tablet, tuning bays, servicing and part wear, engine swaps, dyno runs, diagnostics, quality control, warranties, invoices and shop business screens.

v1.0.0Needs oxmysql, ox_lib, ox_inventory, GR1M_BridgeAlso install GR1M_Mech_assets v1.0.0

Frameworks: Qbox, QBCore, ESX Legacy (auto-detected). Requires: oxmysql, ox_lib, ox_inventory, GR1M_Bridge (free), OneSync, server build 7290+.

#Install

  1. Install the free GR1M_Bridge and this resource.
  2. Add the items in install/ox_inventory-items.lua to ox_inventory/data/items.lua, and copy install/images/* to ox_inventory/web/images/.
  3. Add to server.cfg in this order:
ensure oxmysql
ensure ox_lib
ensure qbx_core          # or qb-core / es_extended
ensure ox_inventory
ensure GR1M_Bridge
ensure GR1M_Handling     # optional, from the Mech Pack
ensure GR1M_Mech
  1. Admin access: add_ace group.admin gr1m.mech.admin allow (holders of the command ace are admins too).
  2. Start the server. Database tables are created automatically (Config.AutoRunSQL = true). sql/install.sql is a reference copy.

#Shops

Two vanilla-map shops are set up: Benny's (self-service) and LS Customs (owned, job mechanic). More example shops are in install/example_locations.lua; some sit inside custom MLOs, so check their coords on your map before copying them into Config.MechanicLocations.

Owned shops use your framework jobs: anyone with the shop's job is staff, and jobManagementRanks decides who can manage it.

#Business money

Shop revenue goes to the job's society account through GR1M_Bridge, which supports Renewed-Banking, qb-management and esx_addonaccount. Anything else: fill in BridgeHooks in GR1M_Bridge/custom/server.lua.

#Features

#Commands

CommandWhoWhat
/mechanicadminAdminOrders, overrides, lookup, audit log
/mechmigrateAdminImport data from jg-mechanic tables
/mechdebugAdminCallback timings
/vfixAdminFix the current vehicle

#Moving from jg-mechanic

Stop jg-mechanic, start GR1M_Mech, then run /mechmigrate (see also sql/migrate_from_jg.sql). Common jg-mechanic events and exports keep working through server/bridge_jg.lua and client/bridge_jg.lua.

#Config

Everything in config/ and locales/ is editable:

Support: https://discord.gg/m38m33G6jK