Installation

Requirements

Exports

Client Side Exports 
 -- Id Card
 exports['shx-idcard']:CreateCard('id_card')
 -- Police Badge
 exports['shx-idcard']:CreateCard('police_badge')
 -- EMS Badge
 exports['shx-idcard']:CreateCard('ems_badge')

Test Command

RegisterCommand("test982", function()
	exports['shx-idcard']:CreateCard('id_card')
	exports['shx-idcard']:CreateCard('police_badge')
	exports['shx-idcard']:CreateCard('ems_badge')
end)

Configuration

ESX or QBcore

INVENTORY

ox_inventory

You also need to add the item to ox_inventory. To do this, navigate to ox_inventory/data/items.lua and modify it to look like this:

You also need to add the item usable to ox_inventory. To do this, navigate to ox_inventory/modules/items/client.lua and modify it to look like this:

qb_inventory

Go to qb-inventory/js/app.js and find the function function FormatItemInfo(itemData) {, by default at line 384. After if (itemData != null && itemData.info != "") {, add the following code:

Go to qb-core/shared/items.lua, add the following code:

qs-inventory

Add qs-inventory/config/config_metadata.js

Go to qs-inventory/config/config_items.lua

Last updated