๐ป Installation
Install devhub_lib
Download and install the required library and configure it according to your framework.
Download https://github.com/DEVHUB-GG/devhub_lib or use command
git clone https://github.com/DEVHUB-GG/devhub_lib.gitInstall resources from keymaster
- Download the CROSSHAIR MAKER script file from keymaster.
Start resources
Move the files to the resources folder on your server and add the following lines to your server.cfg in the correct order:
ensure devhub_lib
ensure devhub_crosshairThere is no database step: the script needs no SQL. A player's crosshair, profiles and zoom are saved on their own machine, and your admin settings are saved to data/admin.json inside the resource.
Give yourself access to the admin panel
The panel is opened by an admin only. Any one of these is enough, and you can combine them (see sh.config.lua.md):
- You are an admin of devhub_lib (on by default).
- You have the ACE permission. Add this line to your
server.cfg:
add_ace group.admin devhub_crosshair.admin allow- Your identifier is listed in
Config.Admin.identifiers.
Restart your server
Set the script up in-game
Log in as an admin and type /crosshairadmin. Everything else is configured there: the features, the allowed shapes and scopes, the slider limits, the weapons, the command and the keys. Press Save & apply and it is live for every player instantly.
The panel also shows up as Crosshair inside devhub_lib's /admindevhub hub, but that hub has an admin check of its own: it only opens for a devhub_lib admin. If you gave yourself access with the ACE permission or an identifier instead, use /crosshairadmin, which honours all three checks.
The crosshair ships off. A player sees GTA's own reticle until they switch the custom one on with the toggle key (F9 by default) or in the maker.
See script-flow.md for what players and admins can actually do.
DO NOT CHANGE RESOURCE NAME