Jota Dev Passive Businesses
Here you can see the documentation to learn how to install our store's passive business system.

Put in your server.cfg
# JotaDev Passive Businesses
ensure jc_negociosInsert SQL into your database and configure your framework:
CREATE TABLE IF NOT EXISTS `negocios_pasivos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`porcentaje` int(11) DEFAULT NULL,
`cantidad` int(11) DEFAULT NULL,
`tiempo` int(11) DEFAULT NULL,
`job` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`label` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`x` float DEFAULT NULL,
`y` float DEFAULT NULL,
`z` float DEFAULT NULL,
`ciclo_activo` tinyint(4) DEFAULT 1,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS negocios_pasivos_account (
id INT AUTO_INCREMENT PRIMARY KEY,
label VARCHAR(100) NOT NULL UNIQUE,
dinero INT DEFAULT 0
);
CREATE TABLE IF NOT EXISTS `negocios_grados` (
`id` INT NOT NULL AUTO_INCREMENT,
`job_name` VARCHAR(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`grade` INT NOT NULL,
`name` VARCHAR(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`label` VARCHAR(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`salary` INT DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Config = {}
Config.Framework = 'esx' -- Ingrese "esx" para ESX o "qb" para QbCore
Config.Debug = false
Config.CommandBusinesses = 'negocios'
Config.DistanceNegocios = 15.0
Config.GruposAutorizados = {
'admin',
'superadmin',
'god'
}
if Config.Framework == 'qb' then
QBCore = exports['qb-core']:GetCoreObject()
elseif Config.Framework == 'esx' then
ESX = exports["es_extended"]:getSharedObject()
else
print '^1[^6jc_negocios^1] ^2Framework No encontrada, ingrese esx o qb'
return
endConfig = {}
Config.Framework = 'qb' -- Ingrese "esx" para ESX o "qb" para QbCore
Config.Debug = false
Config.CommandBusinesses = 'negocios'
Config.DistanceNegocios = 15.0
Config.GruposAutorizados = {
'admin',
'superadmin',
'god'
}
if Config.Framework == 'qb' then
QBCore = exports['qb-core']:GetCoreObject()
elseif Config.Framework == 'esx' then
ESX = exports["es_extended"]:getSharedObject()
else
print '^1[^6jc_negocios^1] ^2Framework No encontrada, ingrese esx o qb'
return
endLast updated