Files
red-valley/resources/[framework]/[addons]/[quasar]/qs-licenses/README.md
Kotzu 978c9bc759 fix(qb-core): add global CreateUsableItem alias for qs-inventory compatibility
qs-inventory apelează CreateUsableItem ca funcție globală, dar qb-core definea doar QBCore.Functions.CreateUseableItem (cu 'e'). Adăugat alias global + fix 16 stringuri sparte în items.lua care blocau parsarea.
2026-04-02 00:08:19 +03:00

32 lines
1023 B
Markdown

Example to use a custom trigger
```lua
local data = {
label = 'License Example', ---@param Label on inventory
type = 'Weapon license', ---@param Licence type
name = 'id_card', ---@param Item name
price = 10, --- @param Price of licencie
}
TriggerEvent('qs-licenses:client:Target', data)
```
You need go to qs-inventory\config\metadata.js
Modify id_card
```js
if (itemData.name == "id_card") {
$(".item-info-title").html("<p>" + itemData.info.label + "</p>");
$(".item-info-description").html(
"</p><p><strong>First Name: </strong><span>" +
itemData.info.firstname +
"</span></p><p><strong>Last Name: </strong><span>" +
itemData.info.lastname +
"</span></p><p><strong>Birth Date: </strong><span>" +
itemData.info.birthdate +
"</span></p><p><strong>Gender: </strong><span>" +
gender +
"</span></p><p><strong>Type: </strong><span>" +
itemData.info.type +
"</span></p>"
);
};
```