mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Added ESX.Math.Trim function
This commit is contained in:
+1
-1
@@ -521,6 +521,7 @@ Citizen.CreateThread(function()
|
||||
while true do
|
||||
|
||||
Citizen.Wait(1000)
|
||||
|
||||
if ESX ~= nil and ESX.PlayerLoaded and PlayerSpawned then
|
||||
local playerPed = PlayerPedId()
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
@@ -535,7 +536,6 @@ end)
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
while true do
|
||||
|
||||
Citizen.Wait(1000)
|
||||
|
||||
local playerPed = PlayerPedId()
|
||||
|
||||
@@ -215,6 +215,7 @@ function CreateExtendedPlayer(player, accounts, inventory, job, loadout, name, l
|
||||
for j=1, #result, 1 do
|
||||
if Config.Accounts[i] == result[j].name then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -10,3 +10,7 @@ ESX.Math.GroupDigits = function(value)
|
||||
|
||||
return left..(num:reverse():gsub('(%d%d%d)','%1' .. _U('locale_digit_grouping_symbol')):reverse())..right
|
||||
end
|
||||
|
||||
ESX.Math.Trim = function(value)
|
||||
return (string.gsub(value, "^%s*(.-)%s*$", "%1"))
|
||||
end
|
||||
Reference in New Issue
Block a user