OTHERPLANET DOCS
  • 🪐About US
  • 💻Scripts
    • 🅿️OP Garages V2
      • Installation
      • Tutorials
        • Vehicles not shown in Garage
        • How to add player to Garage Admin
      • Configuration
      • Customization
      • Housing Integration
      • Garage Admin Usage
      • Admin Commands
      • Plate Changer
      • Sub Owners
      • Currency Change
      • ByPass Vehicle Types
    • 🔫OP Crime Organisations
      • Installation
      • Tutorials
        • How to add player to Crime Admin
      • Config Files
      • Customization
      • Tablet as Item
      • Global States
      • Exports
        • Server Side
    • 🚘OP Mechanic Job
      • Installation
      • Config File
      • Setup Jobs
      • Setup Dispatch
      • Get Duty
      • Update Tablet Stats
      • Notifications/Progressbar
      • Discord Logs
    • 🗒️OP Requests
      • Installation
      • Config
      • Usage
    • 🌇OP HUD
      • Config File
      • Instalation
      • Progress Bar Usage
      • Notify Usage
      • Alcohol Status & Stamina
    • 🏎️OP Vehicle Theft
      • Installation
      • OX Inventory
      • Translate Sounds
      • Config
      • Customization
    • 🅿️OP Garages V1 (OLD)
      • Installation
      • Config
        • Main
        • Garages Locations
        • Vehicles and Brands
      • Customization
      • Vehicle Types
      • Jobs
      • Exports
      • Other
Powered by GitBook
On this page
  1. Scripts
  2. OP Crime Organisations

Tablet as Item

If you want the tablet to work as an item, you need to create the item based on the inventory script you're using.

File Location: ox_inventory/data/items.lua

Image Should Be placed in: ox_inventory/web/images

['crime_tablet'] = {
    label = 'Crime Tablet',
    weight = 1,
    type = 'item',
    image = 'tablet.png', -- Optional, if you want an image for it
    useable = true,
    description = 'A tablet for various crime-related tasks.',
    client = {
	event = 'op-crime:openCrimeTablet'
    }
}

File Location: qb-core/shared/items.lua

Image Should Be placed in: qb-inventory/html/images

crime_tablet = { 
    name = 'crime_tablet', 
    label = 'Crime Tablet', 
    weight = 1, 
    type = 'item', 
    image = 'tablet.png', -- Optional, if you want an image for it
    useable = true, 
    shouldClose = true, 
    description = 'A tablet for various crime-related tasks.' 
},

This is MySql insert.

INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ("crime_tablet", "Crime Tablet", 1, 0, 1)

['crime_tablet'] = {
    name = 'crime_tablet',
    label = 'Crime Tablet',
    weight = 5,
    type = 'item',
    image = 'tablet.png', -- Optional, if you want an image for it,
    unique = false,
    useable = true,
    description = 'A tablet for various crime-related tasks.',
    client = {
        export = 'op-crime.opentablet'
    },
}

PreviousCustomizationNextGlobal States

Last updated 1 month ago

💻
🔫