Scripts/Petty Crime
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.
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.
| Crime | Target | Tool |
|---|---|---|
| Pickpocket (harder from the front) | Pedestrians | None |
| Rob at gunpoint | Pedestrians | Any gun or melee weapon |
| Smash window and search | Parked cars (can set off the alarm) | None |
| Saw off catalytic converter | Parked cars | Hacksaw |
| Unscrew licence plate | Parked cars | Screwdriver |
| Empty the till | Shop tills | None |
| Break into vending machine | Soda, snack, coffee and cigarette machines | Lockpick |
| Jimmy parking meter | Parking meters | Screwdriver |
| Force coin box | Newspaper boxes | None |
| Pry open coin box | Payphones | Screwdriver |
| Fish out mail | Post boxes | None |
| Strip copper | Aircon units | Hacksaw |
| Pick tool chest lock | Tool chests | Lockpick |
| Dig through dumpster | Dumpsters | None |
The fence
Behind Vinewood Video by default. Base prices drift by ±15% each restart, so players have to keep checking.
Install
- Put
towline_pettycrimein your resources folder. - Add the items in
Config.Itemsto your inventory's item list (ox_inventory or wasabi_inventory). - Add
ensure towline_pettycrimetoserver.cfg, after ox_lib, ox_target and qbx_core. - 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.
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
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.