About This File
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)andGetDiscount(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
resourcesand addensure 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_debugto 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
Recommended Comments
There are no comments to display.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.