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 Banking.


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 `dex_banking` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `identifier` VARCHAR(64) NOT NULL,
  `banco` VARCHAR(64) NOT NULL,
  `saldo` INT DEFAULT 0,
  `ouro` INT DEFAULT 0,
  `congelada` TINYINT(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `identifier_banco_unique` (`identifier`, `banco`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- ACCOUNT OF CENTRAL MONEY | ACCOUNT WHERE ALL THE FEES GET IN
INSERT INTO dex_banking (identifier, banco, saldo) VALUES ('TESOURO_SYSTEM', 'tesouro', 0)

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

-- IF YOU NEED TO DELETE ANY SAFE FROM DATABASE FOR SOME REASON
DELETE FROM character_inventories WHERE inventory_type = 'dex_bank_safe_(bank)_(indentifier)';

-- Example
DELETE FROM character_inventories WHERE inventory_type = 'dex_bank_safe_valentine_steam:000000000000000';

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 oxmysl #Example, oxmysql has to start first
ensure vorp_core # Example, here is your framework
ensure vorp_menu # Example, dependencies
ensure vorp_inputs
ensure vorp_inventory 

# Dex Resources
ensure Dex_Banking

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

Last updated