Hello everyone VAG Users,
What you need to do first:
You should give information to the bag in qb-shops or the market script you use.
In addition, if you want to print text on the item info, in the inventory;
What you need to do first:
You should give information to the bag in qb-shops or the market script you use.
For example, the code I mentioned above.[1] = {
name = "bag",
price = 2,
amount = 1000,
info = {
bagid = tostring(RLShared.RandomInt(2) .. RLShared.RandomStr(3) .. RLShared.RandomInt(1) .. RLShared.RandomStr(2) .. RLShared.RandomInt(3)),
},
type = "item",
slot = 3,
},
In addition, if you want to print text on the item info, in the inventory;
GOOD USES...JavaScript:
} else if (itemData.name == "bag") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p><strong>Çanta: </strong><span>' + itemData.info.bagid + '</span></p>');