From dd7cef1c8f91a9ea0f582d76b8535877c1fc1624 Mon Sep 17 00:00:00 2001 From: ToxicHarD Date: Tue, 20 Jun 2023 20:07:26 -0300 Subject: [PATCH] Update [ PRIORIDADE ] --- Banco de Dados.sql | 9 +++++++++ resources/[ FRAMEWORK ]/vrp/base.lua | 7 +------ resources/[ FRAMEWORK ]/vrp/modules/prepare.lua | 5 +++++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Banco de Dados.sql b/Banco de Dados.sql index 54bbeee..679c939 100644 --- a/Banco de Dados.sql +++ b/Banco de Dados.sql @@ -91,6 +91,15 @@ CREATE TABLE `vrp_homes_permissions` ( ) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = DYNAMIC; -- Exportação de dados foi desmarcado. +-- Copiando estrutura para tabela db.vrp_priority +CREATE TABLE IF NOT EXISTS `vrp_priority` ( + `passport` int(11) NOT NULL, + `steam` varchar(100) NOT NULL, + `priority` int(11) DEFAULT NULL, + `discord` varchar(50) DEFAULT NULL, + PRIMARY KEY (`passport`,`steam`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + CREATE TABLE `vrp_user_vehicles` ( `user_id` int NOT NULL, `vehicle` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, diff --git a/resources/[ FRAMEWORK ]/vrp/base.lua b/resources/[ FRAMEWORK ]/vrp/base.lua index 9814261..040d569 100644 --- a/resources/[ FRAMEWORK ]/vrp/base.lua +++ b/resources/[ FRAMEWORK ]/vrp/base.lua @@ -252,7 +252,7 @@ AddEventHandler("queue:playerConnecting",function(source,ids,name,setKickReason, deferrals.done() end else - deferrals.done("Alto SP informa: [Adquira já seu visto em https://discord.io/hardev] - [ID: "..user_id.."]") + deferrals.done("HarD Network informa: [Adquira já seu visto em https://discord.io/hardev] - [ID: "..user_id.."]") TriggerEvent("queue:playerConnectingRemoveQueues",ids) end else @@ -269,11 +269,6 @@ AddEventHandler("queue:playerConnecting",function(source,ids,name,setKickReason, end end) -AddEventHandler("playerDropped",function(reason) - local source = source - vRP.dropPlayer(source) -end) - RegisterServerEvent("vRPcli:playerSpawned") AddEventHandler("vRPcli:playerSpawned",function() local user_id = vRP.getUserId(source) diff --git a/resources/[ FRAMEWORK ]/vrp/modules/prepare.lua b/resources/[ FRAMEWORK ]/vrp/modules/prepare.lua index 9e6e3bb..43b868b 100644 --- a/resources/[ FRAMEWORK ]/vrp/modules/prepare.lua +++ b/resources/[ FRAMEWORK ]/vrp/modules/prepare.lua @@ -18,6 +18,11 @@ vRP.prepare("vRP/get_identifiers_by_userid","SELECT identifier FROM vrp_user_ids vRP.prepare("vRP/get_banned_identifiers","SELECT identifier FROM vrp_users_banned WHERE identifier = @identifier") vRP.prepare("vRP/rem_banned_identifiers","DELETE from vrp_users_banned WHERE user_id = @user_id") +----------------------------------------------------------------------------------------------------------------------------------------- +-- QUEUE.LUA +----------------------------------------------------------------------------------------------------------------------------------------- +vRP.prepare("vRP/get_priority","SELECT * FROM vrp_priority") + ----------------------------------------------------------------------------------------------------------------------------------------- -- IDENTITY.LUA -----------------------------------------------------------------------------------------------------------------------------------------