Skip to content

Items and Inventory

This page covers every item the resource expects and how to install them.

Where Item Definitions Live#

Package file:

text
INSTALL/items.md

Item images:

text
INSTALL/ITEM-IMAGES/

Required Items#

lua
['wedding_invitation'] = {
    label = 'Wedding Invitation',
    weight = 200,
},
['wedding_bouquet'] = {
    label = 'Wedding Bouquet',
    weight = 200,
},
['wedding_invite'] = {
    label = 'Wedding Invitation',
    weight = 200,
},
['marriage_certificate'] = {
    label = 'Marriage Certificate',
    weight = 200,
},
['ring_gold'] = {
    label = 'Gold Ring',
    weight = 200,
},
['ring_silver'] = {
    label = 'Silver Ring',
    weight = 200,
},
['gold_ring_amethyst'] = {
    label = 'Amethyst Gold Ring',
    weight = 200,
},
['gold_ring_corundum'] = {
    label = 'Corundum Gold Ring',
    weight = 200,
},
['gold_ring_crystal'] = {
    label = 'Crystal Gold Ring',
    weight = 200,
},
['gold_ring_diamond_crystal'] = {
    label = 'Diamond Gold Ring',
    weight = 200,
},
['gold_ring_quartz'] = {
    label = 'Quartz Gold Ring',
    weight = 200,
},
['gold_ring_ruby'] = {
    label = 'Ruby Gold Ring',
    weight = 200,
},
['silver_ring_amethyst'] = {
    label = 'Amethyst Silver Ring',
    weight = 200,
},
['silver_ring_corundum'] = {
    label = 'Corundum Silver Ring',
    weight = 200,
},
['silver_ring_crystal'] = {
    label = 'Crystal Silver Ring',
    weight = 200,
},
['silver_ring_diamond_crystal'] = {
    label = 'Diamond Silver Ring',
    weight = 200,
},
['silver_ring_quartz'] = {
    label = 'Quartz Silver Ring',
    weight = 200,
},
['silver_ring_ruby'] = {
    label = 'Ruby Silver Ring',
    weight = 200,
},

ox_inventory#

  1. Copy the OX section from INSTALL/items.md
  2. Put images into ox_inventory/web/images/
  3. Restart ox_inventory
  4. Restart 0r-marriagev2

Config:

lua
ItemImagePath = 'nui://ox_inventory/web/images/%s.png',

qb-inventory#

  1. Copy the QB section from INSTALL/items.md
  2. Put images into your qb images folder
  3. Restart inventory + core
  4. Restart 0r-marriagev2

Config:

lua
ItemImagePath = 'nui://qb-inventory/html/images/%s.png',

Item does nothing#

  1. Check the name matches config
  2. Check the item exists in inventory
  3. Check the inventory script is running
  4. Restart inventory, then marriage

Bouquet#

Using wedding_bouquet puts it in the hand.

The model comes from 0r-marriagev2-streams. If the prop is invisible, streams is not started.

Test#

  1. Ring appears in inventory
  2. Image shows
  3. Jewelry shop sells it
  4. Proposal ring can be used
  5. Certificate opens
  6. Bouquet goes into hand
  7. Invitation opens