Merge branch 'dev' of https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge into dev
This commit is contained in:
commit
93ebca8762
12 files changed
+504
-198
No files matched your search
@@ -243,6 +243,7 @@ end
|
||||
Framework.AddAccountBalance = function(src, _type, amount)
|
||||
local xPlayer = ESX.GetPlayerFromId(src)
|
||||
if not xPlayer then return end
|
||||
if _type == 'cash' then _type = 'money' end
|
||||
return xPlayer.addAccountMoney(_type, amount)
|
||||
end
|
||||
|
||||
@@ -251,6 +252,7 @@ end
|
||||
Framework.RemoveAccountBalance = function(src, _type, amount)
|
||||
local xPlayer = ESX.GetPlayerFromId(src)
|
||||
if not xPlayer then return end
|
||||
if _type == 'cash' then _type = 'money' end
|
||||
xPlayer.removeAccountMoney(_type, amount)
|
||||
return true
|
||||
end
|
||||
@@ -260,6 +262,7 @@ end
|
||||
Framework.GetAccountBalance = function(src, _type)
|
||||
local xPlayer = ESX.GetPlayerFromId(src)
|
||||
if not xPlayer then return end
|
||||
if _type == 'cash' then _type = 'money' end
|
||||
return xPlayer.getAccount(_type).money
|
||||
end
|
||||
|
||||
@@ -330,6 +333,4 @@ Framework.Commands.Add = function(name, help, arguments, argsrequired, callback,
|
||||
help = help,
|
||||
arguments = arguments
|
||||
})
|
||||
end
|
||||
|
||||
-- test
|
||||
end
|
||||
Reference in new issue
Block a user