Studios
Chop Shophouse-3.jpg

Loot & Perks

SoonChop ShopQBCore · Qbox · ESX
PAGE 07 OF 07  ·  COMMANDS & EXPORTS → LOOT & PERKSdocs.glitchstudios.dev
Browse docs

Loot rolls#

When a part is handed in, the server builds the loot:

  1. Salvage: a count between min and max of the salvage item.
  2. Rolls: the part's rolls, plus one more if the bonus chance hits.
  3. Each roll picks a tier among the tiers in the part's pool, weighted by ServerConfig.TierWeights for the player's level, then picks an item of that tier.
  4. For emergency vehicles every count is multiplied by ServerConfig.PoliceLootMult (2).

The default weights move from { 65, 20, 12, 3 } at level 1 to { 35, 30, 25, 10 } at level 20 for tiers 1 to 4.

XP per handed-in item depends on its tier: 5 to 10, 10 to 18, 18 to 30 or 35 to 55. A finished car gives every helper 25 to 50 XP. Without glitch-xpSystem every player is level 1 and no XP is given.

If the player's inventory refuses every item, the part stays in their hands and they are told to make room.

Perks#

These are glitch-xpSystem skill tree perks, read by key. Add the ones you want to your chopping tree.

Perk key Effect in this resource
chop_speed Shortens part progress time, up to 50%.
chop_skill Each rank removes one skill check, down to one.
chop_rare Each rank moves 3 weight from tier 1 to tiers 3 and 4.
chop_bonus Adds to each part's bonus roll chance (at most 95% in total).
chop_double Chance to double the salvage count.
chop_price Raises the yard boss's prices.
chop_alert Cuts the police alert chance on drop-off, capped by ServerConfig.XP.maxAlertCut (40%).
chop_torch A failed skill check does not ruin the part, and it can be tried again.
chop_list Once a day, the boss takes a car during the cooldown. Uses glitch-xpSystem's daily perk exports.
chop_yard_aura While this player is within 30 m of a bay, others stripping there use this player's chop_speed when it is higher.
chop_yard_cut Works with chop_yard_aura. When someone else hands in a part while this player is within 30 m of the bay, a chance (at most 50%) to receive one item from it.

chop_bonus, chop_double and chop_price together are capped at ServerConfig.XP.maxPriceBonus (15%). Above the cap, each one is scaled down by the same factor.