Merge pull request #124 from 0xDEMXN/patch

Patch: remove groups change + fix openInventory issue
This commit is contained in:
Mycroft
2022-02-26 17:16:19 +00:00
committed by GitHub
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -70,11 +70,6 @@ function createESXPlayer(identifier, playerId, data)
defaultGroup = "user"
end
if Config.Multichar and not identifier:find('char1:') then
local char1 = MySQL.single.await(loadPlayer, {identifier:gsub('char%d+:', 'char1:')})
if char1 then defaultGroup = char1.group end
end
if not Config.Multichar then
MySQL.prepare(newPlayer, { json.encode(accounts), identifier, defaultGroup }, function()
loadESXPlayer(identifier, playerId, true)
+1 -1
View File
@@ -453,7 +453,7 @@ end
function OpenBodySearchMenu(player)
if Config.OxInventory then
exports.ox_inventory:openInventory('player', GetPlayerServerId(closestPlayer))
exports.ox_inventory:openInventory('player', GetPlayerServerId(player))
return ESX.UI.Menu.CloseAll()
end