[QB/ESX] [FREE] Vehicle Registration & Insurance (With VIN Numbers)

Browns Vehicle Registration & Insurance

Key Features:

  1. All Vehicles Now have VIN Numbers (NPC & Owned) that you can see by targeting the vehicle, Owned Vehicles VIN Numbers are stored in database so it is permanently attached to the vehicle forever even if the vehicles plate changes.

  2. You can go to Vehicle Registration to purchase Registration for your vehicle

  3. You can go to the Vehicle Insurance Location to Purchase Insurance for your vehicle (By Monthly Plan)

  4. When you use the Vehicle Registration or Insurance Document Item it will show a UI that has your Vehicles Plate, The Expiration Date , Registry Date, Your Name, & Your Vehicles VIN Number. You also do an animation of you holding a clipboard/document for a little more realism.

Side Note:

This Script is simple and would be cool for roleplay especially when roleplaying traffic stops.

Compatibility:

Frameworks:
qb-core
esx

Inventories:
qb-inventory
ox_inventory
qs-inventory
lj-inventory
ps-inventory

Targeting:
qb-target
ox_target
qtarget

Notifications:
Any (uses ox_lib notify by default)

Dependencies:

oxmysql
ox_lib

Download

GitHub

Photos:

What it looks like when you target a vehicle to “Look at” The Vin Number on any Vehicle:

What it looks like when you use the Vehicle Insurance Document Item:

What it looks like when you use the Vehicle Registration Document Item:

What it looks like when you open the Vehicle Registration to buy registration for your vehicle (by plate)

What it looks like when you open the Vehicle Insurance to buy insurance for your vehicle (by plate & month plan)

Screenshot of Config.lua:

18 Likes

if you already tried to use the script and you use qbcore please redownload it. I overlooked something that made the items not useable for qbcore when not using ox_inventory, It has now been fixed.

does the insurance actually do anything?

1 Like

No it’s really just for roleplay, but I might update it to do more if I get suggestions?

Pls also non target❤️

fixed an error when using items, redownload

1 Like

There is an error with esx, I solved it this way

fxmanifest.lua

dependencies {
‘es_extended’,
‘oxmysql’,
‘ox_lib’
}

That shouldn’t of caused an error it was probably because you didn’t start es_extended before this script

1 Like

I noticed it was only on a test server anyway but I had to do it that way

1 Like

Look at the list of Features that I think are essential

  • SQL, Webhook
  • COMMAND TO CHECK IF INSURED
  • COMMAND TO CHECK THE REMAINING INSURANCE PERIOD FOR THE PLAYER
  • THERE SHOULD BE LOCATIONS WHERE YOU CAN REPAIR THE CAR WITH AUTOMATIC INSURANCE
  • ABILITY TO TRANSFER INSURANCE TO ANOTHER PLAYER
  • INCREASE INSURANCE COVERAGE AFTER AN ACCIDENT
1 Like

Just a suggestion, maybe insurance is not just an item, maybe it can be stored in a database and issued via export ‘HasInsurance’ or something like that. This export can be used when the vehicle does not have insurance and they cannot take the vehicle from the garage.

are you using esx?

yes esx

esx legacy?

yes 1.8.5

go look at the link in readme file and open a ticket

i have

what if an police officer ask for insurance? can you give him the item and he sees if your car has an insurance?

this has now been fixed! redownload on github