ID Card

Documentation relating to the ds-idcard.

Buy the script

1. Installation

ds-idcard works on all frameworks compatible with jo_libs (the list).

To install ds-idcard:

  • Download the library: jo_libs

  • Unzip the folder and drop it in your resource folder

  • Download ds-idcard from your keymaster

  • Unzip the folder and drop it in your resource folder

  • Add this ensure in your server.cfg

    • ensure jo_libs

    • ensure ds-idcard

  • add idcard item in your items

2. Usage

Go on the Identity Creation (blip on the map) to get the prompt. Press the key to open the book.

3. Config.lua

Config.lua
Config = Config or {}

Config.Locations = {
    [1] = {
        coords = vector3(2732.16, -1401.94, 46.18),
        pedCoords = vector3(2732.16, -1401.94, 45.28),
        pedHeading = 27.96,
	distancePrompt = 2.0,
        EnablePrompt = true,
        EnableJob = true,
        job = 'shariff',
    },
}

Config.Ped = {
    enable = true,
    pedModel = `s_m_m_ambientblwpolice_01`,
}

Config.Blip = {
    enable = true,
    BlipName = "Identity Creation",
    BlipSprite = `blip_ambient_vip`,
}

Config.Prompt = {
    key = 'INPUT_FRONTEND_ACCEPT',
    groupName = 'Identity Creation',
    keyName = "Open Creator"
}

4. For developers

Events

Open the Identity Creator (Client)

TriggerEvent("ds-idcard:openCreator")

Last updated