neuer printer
This commit is contained in:
parent
a1e9027648
commit
c917371845
33 changed files with 476 additions and 665 deletions
|
@ -1,50 +0,0 @@
|
|||
local ESX = GetResourceState('es_extended'):find('start') and exports['es_extended']:getSharedObject() or nil
|
||||
|
||||
if not ESX then return end
|
||||
|
||||
function getPlayer(target)
|
||||
local xPlayer = ESX.GetPlayerFromId(target)
|
||||
return xPlayer
|
||||
end
|
||||
|
||||
function RemovePlayerMoney(Player,account,TotalBill)
|
||||
if account == 'bank' then
|
||||
Player.removeAccountMoney('bank', TotalBill)
|
||||
elseif account == 'money' then
|
||||
Player.removeAccountMoney('money', TotalBill)
|
||||
end
|
||||
end
|
||||
|
||||
function GetPlayerAccountMoney(Player,account,TotalBill)
|
||||
if account == 'bank' then
|
||||
if Player.getAccount('bank').money >= TotalBill then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
elseif account == 'money' then
|
||||
if Player.getAccount('money').money >= TotalBill then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function HasItem(playerSource)
|
||||
if Config.CheckItem then
|
||||
local xPlayer = ESX.GetPlayerFromId(playerSource)
|
||||
if not xPlayer then return false end
|
||||
|
||||
local item = xPlayer.getInventoryItem(Config.ItemName)
|
||||
if item and item.count >= 1 then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue