Before installing FNX Advanced IDS, make sure your server has the following resources installed and working correctly.
Community Bridge
This resource is mandatory, It is used to handle framework compatibility (ESX, QBCore, Qbox), inventory systems and UI / menu / notify / target systems
screenshot-basic or screencapture
This resource is used to take player photos and generate document images You also need a MySQL resource:
Recommended: oxmysql
Supported: mysql-async
β οΈ Important Notes
Make sure community_bridge starts BEFORE fnx-advancedids
Make sure screenshot-basic or screencapture is working correctly, otherwise photos will not work
The label and header fields are the ones displayed on top-left of the card, see the picture as reference
label = "Drive card",header = "City of los santos",
This requiredFields contains the fields that you want to show up on the card, you can also create custom fields and much more, each card can be unique in the use.
These are the locations where players can obtain documents, you can add new points, remove or change them.
takeDataFromUserInput = false,
This config, allow the player to set manually the data displayed on the type of license thatβs going to obtain, this feature is active on the fake id point, be default for driving licenses, id card and firearm license is set on false, because we get the data automatically.
type = "drive",
itβs the card previously created thatβs going to be given trought this point.
price = { money = 500, bank = 500}
in any point you can also change price, remove it bank / cash or other accounts like black_money
requiredItems = { ["water"] = 10,},
in any point, you can set one or more required items to obtain a card, this can be useful for the fake id creation point, it works in this way
requiredServerLicense = { ["drive"] = true,},
in any point, you can set that to get a determinate item you need to have another license saved on your framework, for example, on the sample config above, to get the access to this license (we will say thats the flight permit) you need to mandatory have the βdriveβ license saved on your core (for example, in esx_license ) thatβs the car driving license.
allowDuplicate = true,
it means that on this point, the card can be taken as many times the players wants to
This export gives a card directly to a player, It does not use a world point or NPC.
It is useful when another script already knows exactly which card should be given.
A table containing the data used to create the card.
{ price = { -- price to set when giving a card ["money"] = 500, --["cash"] = 100, --["black_money"] = 312, ["bank"] = 500, --["dirty_money"] = 15000 },-- or nil fields = { { label = "Label", -- example "FIRST NAME" value = "Value", -- example "Jonh" side = "front" -- front or back }, }, url = "image url" -- The image URL used for the player's photo.}
OpenCardCreation uses the FNX Advanced IDS internal camera system.That means the player will go through the full photo capture flow before receiving the card.
Below is an example integration with a driving school script.After the player receives the license through the driving school system, the script opens FNX Advanced IDS card creation to generate the physical card.
If you use GiveId, make sure the fields table contains the values you want to show on the card.This export does not automatically build the field list for you unless your internal implementation does it.