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
  3. Configuration

Criminal Rewards

PreviousSecurity Shop ItemsNextBlips

Last updated 9 months ago

This table defines rewards that criminals receive for successfully hijacking VIP missions. The rewards are categorized by job level.

Config.CriminalRewards = {
    [1] = {  -- Level 1 Rewards
        { 
            item = "weapon_pistol", --Spawncode
            chance = 0.9,  -- Chance of getting reward
            quantity = {1, 2, 3, 4}  -- Quantities for team sizes 1-4 
        },
    }
}

content_copyUse code .Lua

  • [1], [2], [3]: Represent job difficulty levels.

    • item: The spawncode of the reward item.

    • chance: The probability (between 0 and 1) of the criminal receiving this specific reward.

    • quantity: A table defining the quantity of the item awarded based on the criminal team size. For instance, quantity = {1, 2, 3, 4} means a solo criminal gets 1, a team of 2 gets 2, and so on.

with caution