Installation


1. Download Resource

Download the purchased resource from CFX Portal - Official Website of FiveM/RedM with your purchased assets.


2. Download Dependencies

Download all the dependencies needed for Dex Relationships.


3. Insert table in DB

For the banking features to be persistent and for the script to fully work, you need to insert the following:

CREATE TABLE IF NOT EXISTS `girlfriend_status` (
    `id` INT NOT NULL AUTO_INCREMENT,
    `identifier` VARCHAR(64) NOT NULL,
    `girlfriend_id` INT NOT NULL,
    `friendship` INT DEFAULT 0,
    `romance` INT DEFAULT 0,
    `home_x` DOUBLE DEFAULT NULL,
    `home_y` DOUBLE DEFAULT NULL,
    `home_z` DOUBLE DEFAULT NULL,
    `last_meal_request` INT DEFAULT 0,
    `is_dead` TINYINT(1) DEFAULT 0,
    PRIMARY KEY (`id`),
    UNIQUE KEY `unique_player_gf` (`identifier`, `girlfriend_id`)
);

Use the one bellow if you need to delete an inventory from a companion for some reason:

-- IF YOU NEED TO DELETE ANY GIRLFRIEND INVENTORY FROM DATABASE FOR SOME REASON
DELETE FROM character_inventories WHERE inventory_type = 'gf_stash_(1)';

4. Start Resource

To start the resource in the server.cfg, make the sure it's been iniciated before the VORP Framework. When using a framework like vorp_core, you should start the resource after like so:

ensure vorp_core # Example, here is your framework
ensure vorp_inventory # Example, dependencies

# Dex Resources
ensure Dex_Relationships

Make sure there are no syntax errors in your server.cfg .

Last updated