Skip to main content
Inventory 4.0

Installation

Install the inventory system and configure its database, vehicle validation and framework integrations.

info

Basic Lua programming knowledge is required to configure this resource.

Inventories are not drag & drop and play resources.

Required dependencies

oxmysql

Default database connector; replaceable through the SQL exports.

FiveM artifact 4752+

Required for Lua 5.4 and escrow support.

Installation steps

  1. 01

    Extract the resource

    Copy the extracted folder into your server resources directory.

  2. 02

    Import the database

    Import the included SQL file into your server database.

  3. 03

    Configure vehicle validation

    Validate vehicle plates before creating trunk and glovebox inventories.

    IS_VEHICLE_EXIST
  4. 04

    Start the resource

    Add Inventory 4.0 to your server configuration.

    ensure avp_inventory_4
Vehicle validation

Configure IS_VEHICLE_EXIST to check server-side whether the vehicle plate being accessed is valid. This prevents trunk and glovebox inventories from being created for vehicles that do not exist on the server, such as ped vehicles. An example implementation is already included in the code.