If you are intested in recieving github updates join the community on Discord! |
---|
- qb-core/shared.lua info
["arcadegreen"] = {
["name"] = "arcadegreen",
["label"] = "Green Arcade Card",
["weight"] = 0,
["type"] = "item",
["image"] = "arcadegreen.png",
["unique"] = true,
["useable"] = false,
["shouldClose"] = false,
["combinable"] = nil,
["description"] = "Green Arcade Card"
},
["arcadeblue"] = {
["name"] = "arcadeblue",
["label"] = "Blue Arcade Card",
["weight"] = 0,
["type"] = "item",
["image"] = "arcadeblue.png",
["unique"] = true,
["useable"] = false,
["shouldClose"] = false,
["combinable"] = nil,
["description"] = "Blue Arcade Card"
},
["arcadegold"] = {
["name"] = "arcadegold",
["label"] = "Gold Arcade Card",
["weight"] = 0,
["type"] = "item",
["image"] = "arcadegold.png",
["unique"] = true,
["useable"] = false,
["shouldClose"] = false,
["combinable"] = nil,
["description"] = "Gold Arcade Card"
},
Optional (if you are not using my qb-inventory)
- This code is to display Inventory Tooltip
- inside
qb-inventory/html/js/app.js
look for thefunction FormatItemInfo
else if (itemData.name == "arcadeblue") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p><strong>Owner: </strong>'+itemData.info.owner+'</p><strong>Play Card Time:</strong> '+itemData.info.cardtime+' minutes</p>');
$(".item-info-stats").html('<p>Weight: '+((itemData.weight * itemData.amount) / 1000).toFixed(1) +' | Amount: '+itemData.amount+ ' | Quality: '+itemData.info.quality.toFixed(0)+'%</p>')
} else if (itemData.name == "arcadegreen") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p><strong>Owner: </strong>'+itemData.info.owner+'</p><strong>Play Card Time:</strong> '+itemData.info.cardtime+' minutes</p>');
$(".item-info-stats").html('<p>Weight: '+((itemData.weight * itemData.amount) / 1000).toFixed(1) +' | Amount: '+itemData.amount+ ' | Quality: '+itemData.info.quality.toFixed(0)+'%</p>')
} else if (itemData.name == "arcadegold") {
$(".item-info-title").html('<p>'+itemData.label+'</p>')
$(".item-info-description").html('<p><strong>Owner: </strong>'+itemData.info.owner+'</p><strong>Play Card Time:</strong> '+itemData.info.cardtime+' minutes</p>');
$(".item-info-stats").html('<p>Weight: '+((itemData.weight * itemData.amount) / 1000).toFixed(1) +' | Amount: '+itemData.amount+ ' | Quality: '+itemData.info.quality.toFixed(0)+'%</p>')
}
a simple resource for playing games with friends.
this resource is somewhat standalone, it can be run on any framework but dont expect the ticket feature work if you're running it on something other than ESX.
https://www.youtube.com/watch?v=0k2wwr-5FWI&feature=youtu.be&ab_channel=rcore
Dependencies