3,000 MEMBERS SALE - 15% OFF everything

πŸ’» Installation

1

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

Shell
git clone https://github.com/DEVHUB-GG/devhub_lib.git
2

Install screenshot-basic

screenshot-basic is required β€” the license system uses it to capture and upload the player's license portrait. It ships with most servers in the default [system] resources; if yours doesn't have it, download it from citizenfx/screenshot-basic and add it to your resources folder.

3

Install resources from keymaster

Download the LICENSE SYSTEM script file from keymaster.

4

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:

JavaScript
ensure devhub_lib
ensure screenshot-basic
ensure devhub_licenses
5

Database Setup

Import the sql.sql file into your database.

6

Set up avatar photo hosting

Required. License photos are captured in-game and uploaded to an image host that you choose in configs/s.imagehost.lua. Configure it before issuing any license, otherwise licenses are created without a picture.

Open configs/s.imagehost.lua and either:

  • keep provider = "webhook" and paste your own uploadhub.gg webhook URL into the webhook field (recommended, the links never expire), or
  • set provider = "custom" and host the images yourself through the UploadAvatarImage function.
Lua
Config.AvatarUpload = {
    provider = "webhook",
    webhook = "YOUR_UPLOADHUB_WEBHOOK_URL",
}

Do not paste a raw Discord webhook here. Discord CDN links expire, so every license photo will eventually turn into a broken image.

Full step-by-step guide: https://devhub.gg/docs/id-card-and-license/avatar-photo-hosting

Avatar Photo Hosting
7

Add the items to your inventory

Register the items shipped in the resource's items/ folder (holder, favorites, MDT, fake-license supplies, and any physical license items) in your inventory resource, and copy the icons from items/images.

Using Licenses As Items
8

Restart your server

Devhub Lib Needed For Each Script