PixelCraft Official Docs
  • Welcome
  • Information
    • Discord Roles
    • How to update your asset
    • FiveM Asset Escrow System
  • Assets and Guides
    • PC-Crafting-V2
      • Installation
      • Configuration
        • Inventory System
        • Core Framework
        • Language
        • EXP Enabled
        • Whitelisting Players
        • Whitelisted Admins
        • Weapon Damage Multipliers
        • Weapon Parts Configuration
        • Crafting & Repair Experience
        • Crafting Locations
        • Database Setup
        • Custom Weapons
        • Crafting Recipes
        • Attachments
      • Troubleshooting
      • Commands
      • Support
    • PC-Security
      • Installation
      • Configuration
        • Job Routes
        • Level Thresholds
        • Level-Specific Configurations
        • Damage Threshold
        • Police Alert
        • Security Shop Items
        • Criminal Rewards
        • Blips
      • Support
Powered by GitBook
On this page
  1. Assets and Guides
  2. PC-Security

Installation

  • Download the Resource: Download the PC-Security resource files from your fivem keymaster.

  • Extract the Files: Extract the contents of the downloaded archive to your FiveM server's resources folder.

  • Add to Server.cfg: Add the following line to your server's server.cfg file to ensure the resource starts automatically:

start PC-Security
  • Put these 2 lines in your items.lua file in [qb]/qb-core/shared folder-

    • ['s_tablet2'] = {['name'] = 's_tablet2', ['label'] = 'Secret Tablet', ['weight'] = 2000, ['type'] = 'item', ['image'] = 'oppose_tablet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Secret tablet'},

    • ['s_tablet1'] = {['name'] = 's_tablet1', ['label'] = 'Contractor Tablet', ['weight'] = 2000, ['type'] = 'item', ['image'] = 'contractor_tablet.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Contractor tablet'},

    • For ESX, run this query in your Database:

      • INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('s_tablet1', 'Security Tablet', 1, 0, 1), ('s_tablet2', 'Secret Tablet', 1, 0, 1);

    • Put the images of the 2 tablets named contractor_tablet and oppose_tablet in qb-inventory/html/images.

PreviousPC-SecurityNextConfiguration

Last updated 9 months ago