Skip to content

Commit

Permalink
Update [ PRIORIDADE ]
Browse files Browse the repository at this point in the history
  • Loading branch information
PosseHarD committed Jun 20, 2023
1 parent 2b3173c commit dd7cef1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions Banco de Dados.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 1 addition & 6 deletions resources/[ FRAMEWORK ]/vrp/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions resources/[ FRAMEWORK ]/vrp/modules/prepare.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------------------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit dd7cef1

Please sign in to comment.