OSD-INSURANCES
Last updated
Last updated
Our new insurance script will allow you to add a fully configurable system to your city to add different types of insurance for cars, private properties, real estate, among thousands of other options... your imagination is the limit.
Our team recommends having a minimum knowledge about script programming and installation in FiveM to be able to carry out the installation of all our products. If you do not have this knowledge, we invite you to enter our Discord to request help.
QB-Core Framework
Ox MySql
Unzip the script file.
Put the file called "osd-insurances" into your resources folder and be sure it´s ensured in your server cfg file.
Go to osd-insurances/SHARED and excecute the file called "insert_me.sql" in the same folder you will see the items images for the insurances items.
Now go to the config.lua file and edit as your prefer.
Insert the following items below into "qb-core/shared/items.lua".
Go to "osd-insurances/SHARED" folder and open the "inventory_image" folder copy and paste the images into your inventory images folder.
Our system allows you to use a small api that we have added so that you can use our script and adapt it to other scripts that you want. Next we will explain and give examples of the correct use of our api.
If you wanna know what kind of insurance plan has a player you can use a function to get that information.
THIS FUNCTION CAN BE USED ONLY SERVER-SIDE NOT CLIENT-SIDE
exports['osd-insurances']:GetPlayerPlan(source)