Installation · origen_housing
1. SQL
Run the file that matches your framework.
QBCore / QBX — assets/qbcore.sql
sql
CREATE TABLE IF NOT EXISTS `origen_housing` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`citizenid` VARCHAR(50) DEFAULT NULL,
`name` VARCHAR(50) DEFAULT NULL,
`data` TEXT DEFAULT '[]',
`settings` TEXT DEFAULT '[]',
`furniture` LONGTEXT DEFAULT '[]',
`exterior` LONGTEXT DEFAULT '[]',
`doors` LONGTEXT DEFAULT '[]',
`construction` TEXT DEFAULT '[]',
`positions` LONGTEXT DEFAULT NULL,
`holders` LONGTEXT DEFAULT '[]',
`garage` LONGTEXT DEFAULT '[]',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
ALTER TABLE `players`
ADD COLUMN `last_house` VARCHAR(255) NULL;ESX — assets/esx.sql
Same table, plus the player table patch and optional realestate job:
sql
-- Same CREATE TABLE as above
ALTER TABLE `users`
ADD COLUMN `last_house` VARCHAR(255) NULL;
-- Optional: real estate job
INSERT INTO `jobs` (name, label, whitelisted) VALUES ('realestate', 'Realestate', 1);
INSERT INTO `job_grades` (job_name, grade, name, label, salary) VALUES
('realestate', 0, 'agent', 'Agent', 250),
('realestate', 1, 'manager', 'Manager', 400),
('realestate', 2, 'boss', 'Boss', 600);2. server.cfg
text
ensure bob74_ipl
ensure origen_housing_assets
ensure origen_housingbob74_ipl and origen_housing_assets must start before origen_housing.