π» 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 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.
Install resources from keymaster
Download the LICENSE SYSTEM 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 screenshot-basic
ensure devhub_licensesDatabase Setup
Import the sql.sql file into your database.
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 thewebhookfield (recommended, the links never expire), or - set
provider = "custom"and host the images yourself through theUploadAvatarImagefunction.
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 HostingAdd 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.