For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

1. Download Resource

Download the purchased resource from CFX Portal - the official site of FiveM with purchased resources.


2. Import Database Tables

This is a very important step - without it, the script will not work properly. Depending on the framework you are using (ESX or QB-Core), select the appropriate section below and paste the SQL code into your database.

Not sure how to do it?

Database for ESX
ALTER TABLE `users` ADD COLUMN IF NOT EXISTS `status` longtext DEFAULT NULL;

CREATE TABLE IF NOT EXISTS `needs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `item` varchar(50) NOT NULL,
    `model` varchar(50) NOT NULL,
    `position` longtext NOT NULL,
    `bucket` int(11) DEFAULT 0,
    `metadata` longtext DEFAULT NULL,
    `createdAt` bigint(20) DEFAULT NULL,
    `createdBy` varchar(100) DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
Database for QB-Core
ALTER TABLE `players` ADD COLUMN IF NOT EXISTS `status` longtext DEFAULT NULL;

CREATE TABLE IF NOT EXISTS `needs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `item` varchar(50) NOT NULL,
    `model` varchar(50) NOT NULL,
    `position` longtext NOT NULL,
    `bucket` int(11) DEFAULT 0,
    `metadata` longtext DEFAULT NULL,
    `createdAt` bigint(20) DEFAULT NULL,
    `createdBy` varchar(100) DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

3. Add Items

The script uses its own items. Depending on what inventory you are using, select the appropriate section and add these items to either your item file or database.

Items for ox_inventory
Items for qb-inventory / origen_inventory

4. Remove Conflicting Resources

Before starting VMS Needs, make sure to remove or disable any resources that provide the same functionality.

Running multiple needs/status systems at the same time may cause conflicts, duplicated effects, or unexpected behavior.

Common resources that should be removed:

  • esx_status

  • esx_basicneeds

  • qb-smallresources (consumables.lua file)

  • Any custom hunger / thirst / stress / needs system

  • Any standalone consumables resource that modifies player needs

⚠️ Additional Step for qb-core (Required)

You must remove the built-in hunger/thirst handling from qb-core to prevent conflicts with VMS Needs.

Remove the following code from: qb-core/client/loops.lua

⚠️ Additional Step for qbx_core (Required)

You must remove the built-in hunger/thirst handling from qbx_core to prevent conflicts with VMS Needs.

Remove the following code from: qbx_core/client/loops.lua

Remove the following code from: qbx_core/server/loops.lua


6. Start Resource

To start a resource in your server.cfg, ensure that it begins after your framework has been initiated. For instance, if you are using a framework like es_extended, you should start resource after it, like so:

Ensure there are no syntax errors or incorrect paths in your server.cfg.

Last updated