๐Ÿงพ
docs.scriptsfivem.com
  • ๐Ÿ‘‹Welcome
  • ๐ŸงพResources
    • ๐Ÿ“ฑsfphone
      • Installations
      • Config
      • Exports
      • Open phone
    • ๐Ÿš—sfracing
      • Installations
      • Config
      • Exports
    • ๐Ÿ’ตsfbanking
      • Installations
      • Config
      • Exports
    • ๐Ÿ’ปsfctab
      • Installations
      • Config
      • Open tablet
      • Exports // Triggers
    • ๐Ÿ› ๏ธsfcrafting
      • Installations
      • Config
      • Open crafting table
    • ๐Ÿ””sfnotify
      • Installations
      • Config
      • Exports // Triggers
    • ๐Ÿ‘ทโ€โ™‚๏ธsfjob
      • Installations
      • Config
      • Exports // Triggers
    • ๐Ÿ’ปsfjobtab
      • Installations
      • Config
      • Triggers
    • โŒšsfgps
      • Installations
      • Config
      • Exports
    • ๐Ÿ‘ฎsfpolice
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿฅsfems
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿ…ฟ๏ธsfgarages
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿ›๏ธsfdoj
      • Installations
      • Config
      • Exports/Triggers
    • ๐ŸŽฃsffishing
      • Installations
      • Config
      • Triggers
    • ๐Ÿš—sfvehicleshop
      • Installations
      • Config
    • ๐Ÿ”งsfmechanic
      • Installations
      • Config
      • Exports/Triggers
    • ๐Ÿฐsfjail
      • Installations
      • Config
      • Exports
    • ๐Ÿ”‘sfkeys
      • Exports
Powered by GitBook
On this page
  1. Resources
  2. sfphone

Open phone

PreviousExportsNextsfracing

Last updated 1 year ago

IMPORTANT! Inventory must supports metadata. I recommend ox_inventory.

For resource ox_inventory

Add the following code in the file ox_inventory/data/items.lua


['mobilephone'] = {
	label = 'Smartphone',
	weight = 500,
	stack = false,
	close = true,
	client = {
		export = 'sfphone.mobilephone', -- if you use ox_inventory_examples 'yourscript.mobilephone'
	},
	consume = 0
},
['simcard'] = {
	label = 'Sim card',
	weight = 100,
	stack = false,
	client = {
		export = 'sfphone.simcard', -- if you use ox_inventory_examples or 'yourscript.simcard'
	},
	consume = 0
},

Add the following images to the folder ox_inventory/web/images

๐Ÿงพ
๐Ÿ“ฑ
GitHub - overextended/ox_inventory: Slot-based inventory with metadata.GitHub
Logo
mobilephone.png
simcard.png