This commit is contained in:
TheFantomas
2023-05-07 19:26:11 +02:00
parent 08c9694ac0
commit 612ffb59de
7 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ function ESX.Game.SpawnObject(object, coords, cb, networked)
while not DoesEntityExist(obj) do
obj = NetworkGetEntityFromNetworkId(NetworkID)
Wait(0)
Tries += 1
Tries = Tries + 1
if Tries > 250 then
break
end
@@ -70,7 +70,7 @@ Core.PlayerFunctionOverrides.OxInventory = {
if account then
money = account.round and ESX.Math.Round(money) or money
self.accounts[account.index].money += money
self.accounts[account.index].money = self.accounts[account.index].money + money
self.triggerEvent('esx:setAccountMoney', account)
TriggerEvent('esx:addAccountMoney', self.source, accountName, money, reason)
if Inventory.accounts[accountName] then
@@ -89,7 +89,7 @@ Core.PlayerFunctionOverrides.OxInventory = {
if account then
money = account.round and ESX.Math.Round(money) or money
self.accounts[account.index].money -= money
self.accounts[account.index].money = self.accounts[account.index].mone - money
self.triggerEvent('esx:setAccountMoney', account)
TriggerEvent('esx:removeAccountMoney', self.source, accountName, money, reason)
if Inventory.accounts[accountName] then
+2 -2
View File
@@ -234,7 +234,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
local account = self.getAccount(accountName)
if account then
money = account.round and ESX.Math.Round(money) or money
self.accounts[account.index].money += money
self.accounts[account.index].money = self.accounts[account.index].money + money
self.triggerEvent('esx:setAccountMoney', account)
TriggerEvent('esx:addAccountMoney', self.source, accountName, money, reason)
@@ -257,7 +257,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
if account then
money = account.round and ESX.Math.Round(money) or money
self.accounts[account.index].money -= money
self.accounts[account.index].money = self.accounts[account.index].money - money
self.triggerEvent('esx:setAccountMoney', account)
TriggerEvent('esx:removeAccountMoney', self.source, accountName, money, reason)
+1 -1
View File
@@ -26,7 +26,7 @@ local function getNearbyPlayers(source, closest, distance, ignore)
if not closest then
local dist = #(source - coords)
if dist <= distance then
count += 1
count = count + 1
result[count] = {id = xPlayer.source, ped = NetworkGetNetworkIdFromEntity(entity), coords = coords, dist = dist}
end
else
+2 -2
View File
@@ -3,7 +3,7 @@ GUI.Time = 0
local function openMenu(namespace, name, data)
CurrentNameSpace = namespace
OpenedMenus += 1
OpenedMenus = OpenedMenus + 1
SendNUIMessage({
action = 'openMenu',
namespace = namespace,
@@ -15,7 +15,7 @@ end
local function closeMenu(namespace, name)
CurrentNameSpace = namespace
if OpenedMenus < 1 then return end
OpenedMenus -= 1
OpenedMenus = OpenedMenus - 1
SendNUIMessage({
action = 'closeMenu',
namespace = namespace,
+2 -2
View File
@@ -134,7 +134,7 @@ end
local count = 0
for table, column in pairs(DB_TABLES) do
count += 1
count = count + 1
queries[count] = {query = query:format(table, column), values = {identifier}}
end
@@ -164,7 +164,7 @@ end
DB_TABLES[column.TABLE_NAME] = column.COLUMN_NAME
if column?.CHARACTER_MAXIMUM_LENGTH ~= length then
count += 1
count = count + 1
columns[column.TABLE_NAME] = column.COLUMN_NAME
end
end
+1 -1
View File
@@ -23,7 +23,7 @@ local function Progressbar(message,length,Options)
CurrentProgress.length = length or 3000
while CurrentProgress ~= nil do
if CurrentProgress.length > 0 then
CurrentProgress.length -= 1000
CurrentProgress.length = CurrentProgress.length - 1000
else
ClearPedTasks(ESX.PlayerData.ped)
if CurrentProgress.FreezePlayer then FreezeEntityPosition(PlayerPedId(), false) end