Skip to content

πŸ“¦ Movable chest ​

Documentation relating to the kd_coffre-deplacable.

1. Installation ​

kd_coffre-deplacable is a standalone script. So you don't need a specific framework to use it. It's also mean it works with all framework (Esx, QBCore, VRP, DRP, …).

  • Drag and drop the resource in your resources folder
    • kd_coffre-deplacable
  • Add this 4 ensures in your server.cfg
    • ensure kd_coffre-deplacable
  • Run this SQL command on your database
sql
CREATE TABLE IF NOT EXISTS `coffre_deplacable` (
  `autoinc_coffre` int NOT NULL AUTO_INCREMENT,
  `coords` text NOT NULL,
  `code` int NOT NULL,
  PRIMARY KEY (`autoinc_coffre`),
  KEY `autoinc_coffre` (`autoinc_coffre`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  • Congratulation, the Movable chest script is ready to be use !

2. Usage ​

Put the chest on the ground with the client event

lua
TriggerEvent('AddChest')

Use the decoder device with the client event

lua
TriggerEvent('DecodeChest')

3. Config.lua ​

The configuration file is config.lua in the resource root. Do not edit this file directly as your changes may be lost during updates. Instead, use overwriteConfig.lua to store your customizations.

  • config.lua - Default configuration maintained by developers. Do not modify this file.
  • overwriteConfig.lua - This is where you place only the values you want to override.

How to customize the configuration ​

  1. Open /overwriteConfig.lua
  2. Find the value you want to change in config.lua (e.g., Config.language )
  3. Copy only that line into overwriteConfig.lua
  4. Edit the copied value to your liking

The script loads config.lua first, then overwriteConfig.lua overwrites only the values you redefine. This ensures your customizations are preserved when updating the script.

Loading configuration...

Last updated: