Free
This is a script i made for my own server, i have replicated qb, and created rr framework etc. All my own custom made in house scripts and MLO. This is my 1st post, not my 1st script, im willing to share this one and more in the future depending how this does!! Trying to bring yall a better and easier community, more simple.
rr-ins — Energy Insurance + Funds UI (QBCore)
rr-ins is a plug-and-play insurance system for QBCore that’s locked to your shop. Players buy plans at your desk, call tows back to your shop, and (Deluxe) request heli pickup. All revenue pools in a Funds Terminal (green circle, press E) where only managers/boss can withdraw. Includes mechanic spawners (tow truck / shop truck / heli / moto), anti-abuse, and auto-billing.
Highlight Features
Shop-locked signup: Press E at your in-shop Insurance Desk (or use qb-target) to buy/upgrade/cancel plans.
Plans & perks (configurable):
Starter → paid tow (reduced fee) • Premium → free tow, % repair/custom off • Deluxe → free tow + heli pickup + free body fix + bigger discounts.
Assistance commands:
/rrtow → teleport tow to your shop (respects plan pricing)
/rrheli → Deluxe heli pickup to your helipad
(Spawner access for mechanics at your garage/helipad.)
Funds UI (green circle): All subscription payments + paid tows pool into Funds, not society. Boss/manager withdraw and view the last 10 transactions.
Anti-abuse built in:
10-minute tow cooldown, police proximity block (no tow if cops are nearby), and must be stopped to tow (speed check).
Also pings all mechanic boss/manager on every completed tow.
Auto-billing: Charges every X hours; suspends coverage on failed payments; re-activate at the desk.
Mechanic spawners: Job-gated garage and helipad with your custom vehicle models.
Green progress bars: Tow/heli use a clean green progress bar (works with most qb-progressbar forks).
Exports for discounts:
GetPlan(source) and GetDiscount(source, 'repair'|'custom') for repair/custom scripts.
Commands
/insurance — open the plan menu (at the desk)
/rrtow — request tow to shop
/rrheli — Deluxe heli pickup
/rrspawner — open shop garage if near it (mechanics only)
/rrins_debug — show setup markers (desk/garage/helipad/funds)
Admin / Config
Fully coordinate-driven: set Insurance Desk, Garage, Helipad, Tow-drop, and Funds locations (green circle E prompt).
Revenue routing: all plan purchases & paid tows go into Funds, not society; boss/manager can withdraw to bank or cash.
Anti-abuse knobs: cooldown seconds, police job names, police radius (m), max speed to allow tow.
Custom vehicles: set your shop’s tow truck, truck, heli, and moto spawn names.
Safe guards: discount clamps (≤ 95%) to prevent bad configs or exploits.
Dependencies
qb-core, qb-menu, qb-input, oxmysql
Optional: qb-progressbar (for nice green bars), qb-target (if you prefer target zones).
Install (drag-and-drop)
Put the rr-ins folder in resources and add ensure rr-ins (after core/menu/input/oxmysql).
Import the SQL (creates rr_insurance_subscriptions, rr_insurance_funds, rr_insurance_ledger), or let the script auto-create.
Edit config.lua: drop in your coords, job name, vehicle models, plan prices, billing hours.
Use /rrins_debug to line up the markers.
Done.
What’s new (v1.1.1)
Tow cooldown (10m, configurable)
Manager/boss notifications on every tow
Police proximity & speed checks to prevent cop-evade abuse
Funds Terminal (green circle E) for withdrawals & ledger