NPC Pro – talking, remembering street NPCs with trust, gossip and errands NPC PRO - talk to ANY ped. They remember, they gossip, they snitch. €29.99 See NPC PRO
Updating

Installation

nCore Vehicle Inspection – walk-around checks, mechanic diagnostics with fault codes installation

v1.0.9 Updated 2 sections · 2 min
On this page
  1. Updating
  2. Important
  1. Put the ncore_vehicle_inspection folder into resources/[ncore] (create the [ncore] folder if you do not have one yet).

  2. Optional: import sql/ncore_vehicle_inspection.sql. With oxmysql running the tables are also created automatically on the first start.

  3. Add these lines to server.cfg:

    server.cfg
    set onesync on
    ensure oxmysql
    ensure ncore_vehicle_inspection

    Leave out ensure oxmysql if you do not use it; data is then saved as JSON in the data folder. If you use it, oxmysql has to start before this resource, otherwise it falls back to JSON.

  4. Set the mechanic and police job names and grades in config/config.lua (Config.Permissions), or grant the ACE permissions. For example:

    server.cfg
    add_ace group.admin ncore_vehicle_inspection.admin allow
    add_ace group.mechanic ncore_vehicle_inspection.mechanic allow
    add_ace group.police ncore_vehicle_inspection.police allow
    add_principal identifier.license:YOUR_LICENSE group.mechanic
  5. Restart the server. The console prints the framework (server bridge: framework=...), the storage (persistence: oxmysql or persistence: JSON files) and the language.

  6. Test it: spawn a damaged car with /vdemo (admin, mechanic or police), then try /vinspect on it, and /vdiag as a mechanic. With the admin ACE, /vrole mechanic, /vrole police and /vrole civil switch your role for this resource.

Updating#

Every update is listed in CHANGELOG.md. Keep a copy of your config and locales files before you replace the folder, and put your changes back after. Without oxmysql, also back up the data folder, it holds the certificates, reports and baselines.

Important#

  • Required: OneSync.
  • Detected automatically: ESX, QBCore, QBox, oxmysql.
  • Keep Config.Dev.Enabled = false on a live server.
  • No baselines for the handling tamper check ship. Until you add them or turn on learning, every model reads as unknown. See the FAQ in README.md.

Debug logging is Config.Debug in config/config.lua. You can also turn it on from server.cfg without touching the config. The convar wins over the config value:

server.cfg
setr ncore_vehicle_inspection:debug true