Added ESX.Math.Trim function

This commit is contained in:
ElPumpo
2018-11-20 21:03:44 +01:00
parent f04a2e3c2f
commit 3fc17880f8
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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()
+1
View File
@@ -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
+4
View File
@@ -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