Twilight Storage Unitspaidv1.1.0Qbox
Requirements & Database
Resources that must be running and the database table Twilight Storage Units uses.
Dependencies
Make sure the following resources are installed and started before Twilight Storage Units.
qbx_coreLatest
Player data, money and State IDs.
ox_libLatest
Callbacks and notifications.
ox_inventoryLatest
Registers and opens each unit's stash.
ox_targetLatest
Manager NPC and unit door interactions.
oxmysqlLatest
Saves ownership, shared users and rent dates.
Renewed-BankingLatest
Receives bank payments for rent and purchases.
Database
The storage_units table is created automatically the first time the resource starts. If you prefer to run it yourself:
CREATE TABLE IF NOT EXISTS `storage_units` (
`id` INT PRIMARY KEY,
`owner_id` VARCHAR(50) NULL,
`shared_users` JSON DEFAULT '[]',
`rent_due_at` INT UNSIGNED NULL DEFAULT NULL,
`rent_paid_at` INT UNSIGNED NULL DEFAULT NULL,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);