💻
Source
  • Source Devs
  • 💲Paid Resources
    • 👥SRC-MULTICHAR
      • 💯Read ME
      • 📝Identity
      • 👦Characters
      • 🎥Cams
      • 💳ID Card
        • 💻Exports
        • ➰Required
Powered by GitBook
On this page
  • OX_INVENTORY Example
  • QB-INVENTORY Example
  1. Paid Resources
  2. SRC-MULTICHAR
  3. ID Card

Required

Please do this to create the default id card item

OX_INVENTORY Example

ox_inventory/data/items.lua

["idcard"] = {
	label = "Id card",
	weight = 1,
	stack = false,
	close = true,
	buttons = {
		{
			label = "Look",
			action = function(slot)
			    TriggerEvent("ox_inventory:closeInventory")
	                    exports["src-multichar"]:OpenCardFromInventory(slot)
	                end
		},
		{
			label = "Show",
			action = function(slot)
			    TriggerEvent("ox_inventory:closeInventory")
	                    exports["src-multichar"]:ShowCardFromInventory(slot)
	                end
		}
	}
}

QB-INVENTORY Example

qb-core/shared/items.lua

idcard = {
    name = 'idcard',
    label = 'ID Card',
    weight = 0,
    type = 'item',
    image = 'idcard.png',
    unique = true,
    useable = true,
    shouldClose = true,
    description = 'ID Card'
}
PreviousExports

Last updated 4 months ago

💲
👥
💳
➰