🏎️Vehicle Rentals

Sql

There are 2 sql files included, the file named Sql is just the entire qb/qbx-garages sql updated with my additions.The other is the sql that would alter the current database table to include my additions. (just felt to include both for whatever reason).

Ox Inventory

Add the following in ox_inventory > data > items.lua

Item Images

  • Copy the image/s within kevin-rentals > images

  • Paste the image/s in ox_inventory > web > images

QB Inventory

Add the following to qb-core > shared > items.lua

PS Inventory

If using ps inventory add the following snippet in ps-inventory > js > app.js around line 449

Item Images

  • Copy the image/s within kevin-rentals > images

  • Paste the images in qb inventory > html > images


Creating new locations

  • gang: array

    • name: string The name of the gang

    • grade: number The grade of the gang

  • job: table

    • type: string The type of the job (e.g., 'mechanic')

    • grade: number The grade of the job

  • blip: table

    • use: boolean Whether to use the blip (true/false)

    • sprite: number The sprite ID for the blip

    • color: number The color ID for the blip

    • scale: number The scale of the blip

    • label: number The label for the blip

  • warpPlayer: boolean Warps the player into the vehicle

  • icon: string The icon for the rental location (FontAwesome icon class)

  • ped: table

    • model: hash The model hash for the NPC

    • coords: vector4 The coordinates and heading for the NPC (vector4)

    • scenario: string The scenario the NPC will perform

  • vehicles: table

    • hash: hash The vehicle hash

    • rentalCost: number The price of the vehicle rental

    • minRentalDays: number The minimum rental days

    • maxRentalDays: number The maximum rental days

    • fuelLevel: number The fuel level of the vehicle

    • image: string The image URL of the vehicle

  • coords: table List of coordinates for vehicle spawn points (vector4)

Exports

Checks if a vehicle is a rental vehicle and returns a boolean

Useage

Last updated