GR1M Docs

Parts

Community-driven mechanic parts store. Players craft real GR1M_Mech items in GR1M_Craft, sell them to an admin-placed ped for cash, and mechanics buy that location's stock with cash or bank.

v1.0.0Needs oxmysql, ox_lib, GR1M_Bridge, ox_inventory

#Requirements

#Install

  1. Folder must be named GR1M_Parts.
  2. Schema auto-creates on first boot (or import sql/install.sql).
  3. Catalog rows are seed only. After gr1m_parts_catalog has rows, the database is the source of truth. Empty that table if you want config seeds to load again.
  4. Apply server.cfg:
add_ace group.admin gr1mparts.admin allow

ensure oxmysql
ensure ox_lib
ensure qbx_core        # or qb-core / es_extended
ensure GR1M_Bridge
ensure ox_inventory
ensure ox_target
ensure GR1M_Craft
ensure GR1M_Mech
ensure GR1M_Parts

#Player flow

mechanic_tablet and empty_nitrous_bottle are not in the public catalog.

#Admin

/gr1mparts — framework admins, ACE command, gr1m.admin or gr1mparts.admin.

Select all parts (the default) so new catalog items appear at that store automatically. A subset is a whitelist. Select none to sell nothing there. The server enforces the allowlist on sell, buy, and the player catalog.

Never trust NUI: every sell/buy re-checks distance, catalog, location allowlist, stock, inventory, and money on the server.

#Crafting

Recipes use category mechanic_parts and kind mechanic on GENERAL_3D_TABLE. Every craftable part requires at least 4 distinct input items. Live catalog rows under that floor are padded on boot (existing ingredients stay; unused seed materials then screws/scrap/spring/… fill the rest) and re-upserted into GR1M_Craft.

They are not assigned to a world table automatically. In /gcadmin → TEMPLATES, stamp Mechanic Parts Bench at your position. That template assigns every mechanic_parts recipe.

Imported Craft recipes named mechanic_engine_oil (etc.) are a different item id and will not install in GR1M_Mech. Use these mechpart_* outputs (engine_oil, i4_engine, …).

#Tip

If you want players to be the only source of parts, remove the shops blocks from GR1M_Mech's shop config so they don't undercut this market with infinite stock.

#Permissions

add_ace group.admin gr1mparts.admin allow