DocsCrosshair

Installation

Requirements, ensure order and first start.

Not released yet. These pages are written from the code of manniche_crosshair and can change before the release.

Requirements

  • No required dependencies. fxmanifest.lua only requires server build 5848 or newer.
  • oxmysql is needed only if you set Config.Storage.driver = 'mysql'.

Install

  1. Put the manniche_crosshair folder in your resources folder.
  2. Add the resource to server.cfg after your framework.
  3. Review config.lua. See Configuration.
  4. Restart the server.
ensure es_extended
ensure manniche_crosshair

Use your own framework resource in the first line (qb-core or qbx_core), or omit it on a standalone server. With MySQL storage, start oxmysql before the resource and import the SQL file first. See Storage.

Web interface

The built interface is included in web/dist. You do not need to build it. To rebuild it from web/, run npm install --ignore-scripts and npm run build.

Frameworks

The crosshair does not depend on a framework. The adapter only supplies notifications and the "player loaded" signal. Config.Framework = 'auto' checks started resources in this order:

Resource foundFramework used
qbx_coreqbox
qb-coreqbcore
es_extendedesx
nonestandalone

To force one, set Config.Framework to 'esx', 'qbcore', 'qbox' or 'standalone'. An invalid value falls back to auto detection with a console warning.

First run check

  1. The server console prints [Manniche Crosshair] storage driver: json (or mysql) and a line with the version, preset count and storage driver.
  2. Join the server and run /crosshair. The editor opens.
  3. There is no default key. Players bind one under FiveM Settings, Key Bindings, "Open Manniche Crosshair". To set one for everyone, set Config.OpenKey, for example 'F9'.