Skip to content

Petty Crimes API Reference ​

Configuration Reference ​

All options live in config.lua under the global Config table.

Core Chances ​

KeyTypeDefaultDescription
DropChancenumber60Success threshold for coin theft from parking meters.
NonMeterDropChancenumber30Success threshold for other coin-fed props such as payphones and dispensers.
ChanceOfStealPostnumber70Success threshold for mailbox theft.
ChanceOfStealWearablesnumber80Success threshold for shoplifting-style thefts.
ChanceOfPedUsingWeaponnumber15Chance that hostile peds pull a configured weapon.
ReputationChancenumber45Chance to award crime XP on a successful crime.
NightBonusnumber15Bonus added to some theft rolls during night hours.

Money, Loot, and Durations ​

KeyTypeDefaultDescription
MinCoinsAmountnumber1Minimum coin reward from successful coin theft.
MaxCoinsAmountnumber10Maximum coin reward from successful coin theft.
ParkingFeenumber2Coin cost to pay a parking meter.
StealCooldownnumber300Cooldown in seconds before a robbed location recovers.
ParkingDurations.meternumber3600Payment duration for a standard parking meter.
ParkingDurations.car_parknumber86400Payment duration for a car park ticket machine.
LocationKeyPrecisionnumber2Decimal precision used when generating deterministic world location IDs.

Loot Pools ​

These config tables must contain at least one entry because server startup validates them strictly.

  • RandomItemsFromLetters
  • ClothingItems
  • HatItems
  • GlassesItems
  • SevenElevenItems
  • LiquorShopItems
  • FruitStandItems
  • RandomAngryPedWeapon

World Locations and NPC Reactions ​

KeyTypeDescription
LiquorStoreZonesvec3[]Sphere-zone locations for liquor theft targets.
AggroRadiusnumberRadius used when selecting nearby peds to flee or attack.
RandomAngryPedWeaponstring[]Weapon pool used when hostile peds escalate after a crime.