Scripts/Petty Crime

NL towline_pettycrime · v1.0.0

Petty Crime

Give criminals something to do between heists. 14 small crimes across pedestrians, parked cars and props all over the map, with a fence to sell the loot to.

Qboxox_targetox_lib14 crimes
Via Discordmessage the team to buy Get Petty Crime on Discord See every crime

Features

Works on the whole map

No placed locations to set up. Any matching ped, parked car or prop in the world is a target.

Risk and reward

Skill checks, tools that can break, and separate police alert chances for success and failure, set per crime.

No farming

Cooldowns per spot and per player, so one vending machine can't be emptied twenty times.

Police alerts

A built-in blip for on-duty police, with a single hook to swap in your dispatch resource.

A fence that moves

A street fence buys the loot and sells tools. Prices drift up or down on every restart.

Server-checked

The server checks distance, pending attempts and rewards, so clients can't spawn loot.

Every crime

All through ox_target. Rewards, cooldowns, tools and alert chances are set per crime in the config.

CrimeTargetTool
Pickpocket (harder from the front)PedestriansNone
Rob at gunpointPedestriansAny gun or melee weapon
Smash window and searchParked cars (can set off the alarm)None
Saw off catalytic converterParked carsHacksaw
Unscrew licence plateParked carsScrewdriver
Empty the tillShop tillsNone
Break into vending machineSoda, snack, coffee and cigarette machinesLockpick
Jimmy parking meterParking metersScrewdriver
Force coin boxNewspaper boxesNone
Pry open coin boxPayphonesScrewdriver
Fish out mailPost boxesNone
Strip copperAircon unitsHacksaw
Pick tool chest lockTool chestsLockpick
Dig through dumpsterDumpstersNone

The fence

Behind Vinewood Video by default. Base prices drift by ±15% each restart, so players have to keep checking.

Catalytic converter$450
Stolen laptop$320
Stolen jewellery$260
Stolen watch$180
Stolen phone$120
Also sellsScrewdrivers, hacksaws, lockpicks

Install

  1. Put towline_pettycrime in your resources folder.
  2. Add the items in Config.Items to your inventory's item list (ox_inventory or wasabi_inventory).
  3. Add ensure towline_pettycrime to server.cfg, after ox_lib, ox_target and qbx_core.
  4. Set your police job types in Config.Police.jobTypes, then restart.

Config preview

Every crime is one readable block. Copy one to make your own.

config.lua
catalytic = {
    kind = 'vehicle', label = 'Saw off catalytic converter', icon = 'fas fa-screwdriver-wrench',
    duration = 20000, anim = Anim.under, skill = { 'easy', 'medium', 'medium' },
    item = { name = 'hacksaw', breakChance = 8, failBreakChance = 25 },
    cooldown = { spot = 7200, player = 180 },
    alert = { success = 40, fail = 50 },
    rewards = { items = { { 'catalytic_converter', 1, 1, 100 } } },
},

Requirements

Libraryox_lib
Targetox_target
FrameworkQbox (qbx_core)
Inventoryox_inventory or wasabi_inventory

Changelog

1.0.0

  • 14 crimes across peds, vehicles and world props
  • Police alerts, cooldowns and breakable tools
  • Fence with drifting prices and a tool shop

Give the streets something to do.

Message the team on Discord to get it.

Get Petty Crime on Discord