From b3be5bbddd4b1fa30f8fb98efd735bed1950726f Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 10 Jun 2025 19:52:58 +0200 Subject: [PATCH] ems --- resources/[housing]/.gitattributes | 2 + resources/[housing]/[sql]/esx.sql | 180 ++++++++++++++++++ .../[sql]/items in docs, open here.md | 3 + resources/[housing]/[sql]/only_for_fresh.sql | 7 + resources/[housing]/[sql]/qb.sql | 170 +++++++++++++++++ .../[housing]/qs-housing/shared/config.lua | 10 +- .../script/configuration/client_config.lua | 4 +- .../script/configuration/server_config.lua | 8 +- 8 files changed, 373 insertions(+), 11 deletions(-) create mode 100644 resources/[housing]/.gitattributes create mode 100644 resources/[housing]/[sql]/esx.sql create mode 100644 resources/[housing]/[sql]/items in docs, open here.md create mode 100644 resources/[housing]/[sql]/only_for_fresh.sql create mode 100644 resources/[housing]/[sql]/qb.sql diff --git a/resources/[housing]/.gitattributes b/resources/[housing]/.gitattributes new file mode 100644 index 000000000..dfe077042 --- /dev/null +++ b/resources/[housing]/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/resources/[housing]/[sql]/esx.sql b/resources/[housing]/[sql]/esx.sql new file mode 100644 index 000000000..e54525e21 --- /dev/null +++ b/resources/[housing]/[sql]/esx.sql @@ -0,0 +1,180 @@ +ALTER TABLE + `users` +ADD + IF NOT EXISTS `inside` VARCHAR(50) NULL DEFAULT ''; + +INSERT IGNORE INTO + `addon_inventory` (name, label, shared) +VALUES + ('propery', 'Property', 0); + +INSERT IGNORE INTO + `datastore` (name, label, shared) +VALUES + ('propery', 'Property', 0); + +CREATE TABLE IF NOT EXISTS `houselocations` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `name` VARCHAR(255) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', + `label` VARCHAR(255) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `coords` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `owned` TINYINT(2) NULL DEFAULT NULL, + `price` INT(11) NULL DEFAULT NULL, + `defaultPrice` INT(11) NULL DEFAULT NULL, + `tier` TINYINT(2) NULL DEFAULT NULL, + `garage` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `garageShell` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `creator` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `mlo` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `ipl` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `console` INT(11) NULL DEFAULT NULL, + `board` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `for_sale` INT(11) NULL DEFAULT '1', + `extra_imgs` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `description` TEXT NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', + `creatorJob` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `blip` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `upgrades` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `apartmentCount` INT(11) NULL DEFAULT NULL, + PRIMARY KEY (`name`) USING BTREE, + INDEX `name` (`name`) USING BTREE, + INDEX `id` (`id`) USING BTREE +) +COLLATE='latin1_swedish_ci' +ENGINE=InnoDB +AUTO_INCREMENT=1 +; + +CREATE TABLE IF NOT EXISTS `player_houses` ( + `id` INT(255) NOT NULL AUTO_INCREMENT, + `house` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `citizenid` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `owner` VARCHAR(46) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `keyholders` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `stash` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `outfit` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `logout` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `decorateStash` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `charge` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `credit` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `creditPrice` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `console` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `decorateCoords` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `rented` INT(11) NULL DEFAULT NULL, + `rentPrice` INT(11) NULL DEFAULT NULL, + `rentable` INT(11) NULL DEFAULT NULL, + `purchasable` INT(11) NULL DEFAULT NULL, + `vaultCodes` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + PRIMARY KEY (`id`) USING BTREE, + INDEX `house` (`house`) USING BTREE, + INDEX `owner` (`owner`) USING BTREE, + INDEX `citizenid` (`citizenid`) USING BTREE +) +COLLATE='utf8mb4_general_ci' +ENGINE=InnoDB +AUTO_INCREMENT=3 +; + + + +CREATE TABLE IF NOT EXISTS `house_rents` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `house` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci', + `identifier` VARCHAR(80) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci', + `payed` INT(11) NOT NULL DEFAULT '0', + `date` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) USING BTREE +) COLLATE = 'utf8mb4_general_ci' ENGINE = InnoDB AUTO_INCREMENT = 1; + +CREATE TABLE IF NOT EXISTS `house_objects` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `creator` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci', + `model` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci', + `coords` TEXT NOT NULL COLLATE 'latin1_swedish_ci', + `house` VARCHAR(80) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `construction` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `created` TIMESTAMP NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) USING BTREE +) +COLLATE='latin1_swedish_ci' +ENGINE=InnoDB +AUTO_INCREMENT=1 +; + + +ALTER TABLE `house_objects` + ADD IF NOT EXISTS `construction` VARCHAR(50) NULL DEFAULT NULL, + ADD IF NOT EXISTS `created` TIMESTAMP NULL DEFAULT current_timestamp() +; + +DROP TABLE IF EXISTS `house_plants`; + +CREATE TABLE IF NOT EXISTS `house_plants` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `building` varchar(50) DEFAULT NULL, + `stage` varchar(50) DEFAULT 'stage-a', + `sort` varchar(50) DEFAULT NULL, + `gender` varchar(50) DEFAULT NULL, + `food` int(11) DEFAULT 100, + `health` int(11) DEFAULT 100, + `progress` int(11) DEFAULT 0, + `coords` text DEFAULT NULL, + `plantid` varchar(50) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `building` (`building`), + KEY `plantid` (`plantid`) +) ENGINE = InnoDB AUTO_INCREMENT = 7123 DEFAULT CHARSET = utf8mb4; + +ALTER TABLE `player_houses` + CHANGE COLUMN IF EXISTS `identifier` `owner` VARCHAR(46) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci'; + +ALTER TABLE `houselocations` + ADD IF NOT EXISTS `blip` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `upgrades` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `apartmentCount` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `creatorGotMoney` TINYINT(1) NOT NULL DEFAULT '0' +; + +ALTER TABLE `player_houses` + ADD IF NOT EXISTS `rented` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `rentPrice` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `rentable` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `purchasable` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `console` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `decorateCoords` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `vaultCodes` TEXT NULL DEFAULT NULL +; + +ALTER TABLE `houselocations` + DROP IF EXISTS `houseID` +; + + +ALTER TABLE `player_houses` + DROP IF EXISTS `houseID`, + DROP IF EXISTS `timer`, + DROP IF EXISTS `insideId` +; + +ALTER TABLE `houselocations` + CHANGE COLUMN `tier` `tier` SMALLINT NULL DEFAULT NULL; + +CREATE TABLE IF NOT EXISTS `house_decorations` ( + `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, + `house` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + `creator` VARCHAR(70) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci', + `modelName` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci', + `coords` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + `rotation` TEXT NOT NULL DEFAULT '' COLLATE 'utf8mb3_general_ci', + `inStash` TINYINT(1) NOT NULL DEFAULT '0', + `inHouse` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', + `uniq` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + `created` TIMESTAMP NULL DEFAULT NULL, + `lightData` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + PRIMARY KEY (`id`) USING BTREE, + INDEX `id` (`id`, `house`) USING BTREE +) +COLLATE='utf8mb3_general_ci' +ENGINE=InnoDB +AUTO_INCREMENT=1 +; diff --git a/resources/[housing]/[sql]/items in docs, open here.md b/resources/[housing]/[sql]/items in docs, open here.md new file mode 100644 index 000000000..a5869ed3f --- /dev/null +++ b/resources/[housing]/[sql]/items in docs, open here.md @@ -0,0 +1,3 @@ +Please search for the items and follow all the documentation. + +docs.quasar-store.com \ No newline at end of file diff --git a/resources/[housing]/[sql]/only_for_fresh.sql b/resources/[housing]/[sql]/only_for_fresh.sql new file mode 100644 index 000000000..773f2689f --- /dev/null +++ b/resources/[housing]/[sql]/only_for_fresh.sql @@ -0,0 +1,7 @@ +-- IF YOU ARE NOT UPDATING YOUR OLD QS-HOUSING, MAKE SURE YOU READ THIS SQL! + +DROP TABLE IF EXISTS `houselocations`; +DROP TABLE IF EXISTS `player_houses`; +DROP TABLE IF EXISTS `house_rents`; +DROP TABLE IF EXISTS `house_objects`; +DROP TABLE IF EXISTS `house_plants`; \ No newline at end of file diff --git a/resources/[housing]/[sql]/qb.sql b/resources/[housing]/[sql]/qb.sql new file mode 100644 index 000000000..1e822aac6 --- /dev/null +++ b/resources/[housing]/[sql]/qb.sql @@ -0,0 +1,170 @@ +ALTER TABLE + `players` +ADD + IF NOT EXISTS `inside` VARCHAR(50) NULL DEFAULT ''; + +CREATE TABLE IF NOT EXISTS `houselocations` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `name` VARCHAR(255) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', + `label` VARCHAR(255) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `coords` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `owned` TINYINT(2) NULL DEFAULT NULL, + `price` INT(11) NULL DEFAULT NULL, + `defaultPrice` INT(11) NULL DEFAULT NULL, + `tier` TINYINT(2) NULL DEFAULT NULL, + `garage` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `garageShell` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `creator` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `mlo` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `ipl` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `console` INT(11) NULL DEFAULT NULL, + `board` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `for_sale` INT(11) NULL DEFAULT '1', + `extra_imgs` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `description` TEXT NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci', + `creatorJob` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `blip` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `upgrades` TEXT NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `apartmentCount` INT(11) NULL DEFAULT NULL, + PRIMARY KEY (`name`) USING BTREE, + INDEX `name` (`name`) USING BTREE, + INDEX `id` (`id`) USING BTREE +) +COLLATE='latin1_swedish_ci' +ENGINE=InnoDB +AUTO_INCREMENT=1 +; + +CREATE TABLE IF NOT EXISTS `player_houses` ( + `id` INT(255) NOT NULL AUTO_INCREMENT, + `house` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `citizenid` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `owner` VARCHAR(46) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `keyholders` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `stash` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `outfit` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `logout` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `decorateStash` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `charge` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `credit` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `creditPrice` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `console` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `decorateCoords` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + `rented` INT(11) NULL DEFAULT NULL, + `rentPrice` INT(11) NULL DEFAULT NULL, + `rentable` INT(11) NULL DEFAULT NULL, + `purchasable` INT(11) NULL DEFAULT NULL, + `vaultCodes` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', + PRIMARY KEY (`id`) USING BTREE, + INDEX `house` (`house`) USING BTREE, + INDEX `owner` (`owner`) USING BTREE, + INDEX `citizenid` (`citizenid`) USING BTREE +) +COLLATE='utf8mb4_general_ci' +ENGINE=InnoDB +AUTO_INCREMENT=3 +; + + + +CREATE TABLE IF NOT EXISTS `house_rents` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `house` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci', + `identifier` VARCHAR(80) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci', + `payed` INT(11) NOT NULL DEFAULT '0', + `date` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), + PRIMARY KEY (`id`) USING BTREE +) COLLATE = 'utf8mb4_general_ci' ENGINE = InnoDB AUTO_INCREMENT = 1; + +CREATE TABLE IF NOT EXISTS `house_objects` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `creator` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci', + `model` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci', + `coords` TEXT NOT NULL COLLATE 'latin1_swedish_ci', + `house` VARCHAR(80) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `construction` VARCHAR(50) NULL DEFAULT NULL COLLATE 'latin1_swedish_ci', + `created` TIMESTAMP NULL DEFAULT current_timestamp(), + PRIMARY KEY (`id`) USING BTREE +) +COLLATE='latin1_swedish_ci' +ENGINE=InnoDB +AUTO_INCREMENT=1 +; + + +ALTER TABLE `house_objects` + ADD IF NOT EXISTS `construction` VARCHAR(50) NULL DEFAULT NULL, + ADD IF NOT EXISTS `created` TIMESTAMP NULL DEFAULT current_timestamp() +; + +DROP TABLE IF EXISTS `house_plants`; + +CREATE TABLE IF NOT EXISTS `house_plants` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `building` varchar(50) DEFAULT NULL, + `stage` varchar(50) DEFAULT 'stage-a', + `sort` varchar(50) DEFAULT NULL, + `gender` varchar(50) DEFAULT NULL, + `food` int(11) DEFAULT 100, + `health` int(11) DEFAULT 100, + `progress` int(11) DEFAULT 0, + `coords` text DEFAULT NULL, + `plantid` varchar(50) DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `building` (`building`), + KEY `plantid` (`plantid`) +) ENGINE = InnoDB AUTO_INCREMENT = 7123 DEFAULT CHARSET = utf8mb4; + +ALTER TABLE `player_houses` + CHANGE COLUMN IF EXISTS `identifier` `owner` VARCHAR(46) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci'; + +ALTER TABLE `houselocations` + ADD IF NOT EXISTS `blip` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `upgrades` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `apartmentCount` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `creatorGotMoney` TINYINT(1) NOT NULL DEFAULT '0' +; + +ALTER TABLE `player_houses` + ADD IF NOT EXISTS `rented` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `rentPrice` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `rentable` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `purchasable` INT(11) NULL DEFAULT NULL, + ADD IF NOT EXISTS `console` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `decorateCoords` TEXT NULL DEFAULT NULL, + ADD IF NOT EXISTS `vaultCodes` TEXT NULL DEFAULT NULL +; + +ALTER TABLE `houselocations` + DROP IF EXISTS `houseID` +; + + +ALTER TABLE `player_houses` + DROP IF EXISTS `houseID`, + DROP IF EXISTS `timer`, + DROP IF EXISTS `insideId` +; + +ALTER TABLE `houselocations` + CHANGE COLUMN `tier` `tier` SMALLINT NULL DEFAULT NULL; + +CREATE TABLE IF NOT EXISTS `house_decorations` ( + `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, + `house` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + `creator` VARCHAR(70) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci', + `modelName` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'utf8mb3_general_ci', + `coords` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + `rotation` TEXT NOT NULL DEFAULT '' COLLATE 'utf8mb3_general_ci', + `inStash` TINYINT(1) NOT NULL DEFAULT '0', + `inHouse` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', + `uniq` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + `created` TIMESTAMP NULL DEFAULT NULL, + `lightData` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci', + PRIMARY KEY (`id`) USING BTREE, + INDEX `id` (`id`, `house`) USING BTREE +) +COLLATE='utf8mb3_general_ci' +ENGINE=InnoDB +AUTO_INCREMENT=1 +; diff --git a/resources/[housing]/qs-housing/shared/config.lua b/resources/[housing]/qs-housing/shared/config.lua index b5973c859..5af8c1786 100644 --- a/resources/[housing]/qs-housing/shared/config.lua +++ b/resources/[housing]/qs-housing/shared/config.lua @@ -86,7 +86,7 @@ Locales = {} the asset to ensure everything works as expected! ]] -Config.Language = 'de' +Config.Language = 'en' --[[ Framework Detection System: @@ -167,7 +167,7 @@ Config.Inventory = dependencyCheck(inventories) or 'default' ]] local dispatch = { - ['qs-dispatch'] = 'ps-dispatch' + ['qs-dispatch'] = 'qs-dispatch' } Config.Dispatch = dependencyCheck(dispatch) or 'default' @@ -313,7 +313,7 @@ Config.Upgrades = { } -Config.Society = 'okokbanking' -- select you society: ('none','esx_society','ap-government','esx_society','qb-management','qb-banking','qs-banking','renewed-banking','okokbanking','zpx-banking', 'tgg-banking', 'crm-banking') +Config.Society = 'esx_society' -- select you society: ('none','esx_society','ap-government','esx_society','qb-management','qb-banking','qs-banking','renewed-banking','okokbanking','zpx-banking', 'tgg-banking', 'crm-banking') Config.SocietyCommision = 0.3 -- Percentage of the commission for the company (%30 of house price) -- Taxes configuration @@ -325,7 +325,7 @@ Config.UseMathCeilOnFees = true Config.CreatorJobs = { -- Choose the jobs suitable for creating houses 'realestate', - 'admin', + 'police', 'realestatejob' } @@ -403,7 +403,7 @@ Config.DisableBuyableDecorationFromF3 = false -- Disable the purchase of decorat documentation under the 'dependencies' section. ]] -Config.RequiredCop = 2 -- Number of police required (only for lockpicking) +Config.RequiredCop = 0 -- Number of police required (only for lockpicking) Config.PoliceJobs = { -- Jobs that will be considered police 'realestate', 'police', diff --git a/resources/[jobs]/[medic]/visn_are/script/configuration/client_config.lua b/resources/[jobs]/[medic]/visn_are/script/configuration/client_config.lua index f4a0f6370..b21b012f6 100644 --- a/resources/[jobs]/[medic]/visn_are/script/configuration/client_config.lua +++ b/resources/[jobs]/[medic]/visn_are/script/configuration/client_config.lua @@ -100,8 +100,8 @@ ClientConfig = { m_emergencyDispatch = { -- Enable this to enable the emergency dispatch system. (Button press while being dead to alert emergency services) enabled = true, -- Enable this to enable the emergency dispatch system (or disable it :D). cooldown = 120, -- The cooldown in seconds. - phoneConfiguration = "gcphone", -- The default phone configuration. ("esx_phone", "visn_phone", "gcphone", "dphone", "roadphone", "qs-smartphone", "gksphone", "emergencydispatch", "custom" -> edit in helpers/c_functions.lua|l:244) - receivers = { "ambulance" } -- The jobs that will receive a message/notification when you alert the emergency dispatch. + phoneConfiguration = "roadphone", -- The default phone configuration. ("esx_phone", "visn_phone", "gcphone", "dphone", "roadphone", "qs-smartphone", "gksphone", "emergencydispatch", "custom" -> edit in helpers/c_functions.lua|l:244) + receivers = { "ems" } -- The jobs that will receive a message/notification when you alert the emergency dispatch. }, m_spawnGameObjects = { -- Enable this to enable the spawn game objects feature (bandages on ground etc). diff --git a/resources/[jobs]/[medic]/visn_are/script/configuration/server_config.lua b/resources/[jobs]/[medic]/visn_are/script/configuration/server_config.lua index 83366e374..5cc79cd1d 100644 --- a/resources/[jobs]/[medic]/visn_are/script/configuration/server_config.lua +++ b/resources/[jobs]/[medic]/visn_are/script/configuration/server_config.lua @@ -29,7 +29,7 @@ ServerConfig = { m_dependUnconsciousTimeOnMedicCount = { enabled = false, -- Set this to 'true', if you want that the system will depend on the medic count. - jobs = { "ambulance" }, -- A table of jobs that will count to the final count of medics. + jobs = { "ems" }, -- A table of jobs that will count to the final count of medics. overwrites = { -- Keep in order: Lowest to highest! -- Format: [Medic count as number] = Time in seconds [0] = 60 * 5, -- 5 Minutes when medicCount >= 0 @@ -39,13 +39,13 @@ ServerConfig = { m_limitMenuToJobs = { -- Limits the menu to certain jobs. enabled = false, -- Set this 'true', if you want that the system will limit the menu to certain jobs. - jobs = { "ambulance", "police", "tierarzt" }, -- A table of jobs that are allowed to use the menu. + jobs = { "ems", "police", "tierarzt" }, -- A table of jobs that are allowed to use the menu. }, m_triageSystem = { enabled = true, -- Set this 'true', if you want that the triage system is enabled. jobRestriction = true, -- Set this 'true', if you want that the triage system is restricted to certain jobs. - jobs = { "ambulance", "police", "tierarzt" }, -- A table of jobs that are allowed to use the triage system. + jobs = { "ems", "police", "tierarzt" }, -- A table of jobs that are allowed to use the triage system. }, m_stateSaving = { -- This feature will save the state of the players (like injuries, blood pressure) to a file (recommend) or mysql database. @@ -82,7 +82,7 @@ ServerConfig = { m_medicalOperations = { enabled = true, actions = { "cpr" }, - jobs = { "ambulance" } + jobs = { "ems" } }, -- [[ Debug Settings ]] --