Not released yet. These pages are written from the code of
manniche_crosshair and can change before the release.Requirements
- No required dependencies.
fxmanifest.luaonly requires server build 5848 or newer. oxmysqlis needed only if you setConfig.Storage.driver = 'mysql'.
Install
- Put the
manniche_crosshairfolder in yourresourcesfolder. - Add the resource to
server.cfgafter your framework. - Review
config.lua. See Configuration. - 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 found | Framework used |
|---|---|
qbx_core | qbox |
qb-core | qbcore |
es_extended | esx |
| none | standalone |
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
- The server console prints
[Manniche Crosshair] storage driver: json(ormysql) and a line with the version, preset count and storage driver. - Join the server and run
/crosshair. The editor opens. - 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'.