βοΈInstallation
Framework money & job functions
function PltAddMoney(src,money,transactionType,operationType,operationId)
if ESX then
local xPlayer = ESX.GetPlayerFromId(src)
if not xPlayer then return print(src, "Couldn't get paid for logging out of the game or something went wrong:"..money) end
xPlayer.addAccountMoney('bank', money)
--xPlayer.addMoney(money)
elseif QBCore then
local xPlayer = QBCore.Functions.GetPlayer(src)
if not xPlayer then return print(src, "Couldn't get paid for logging out of the game or something went wrong:"..money) end
xPlayer.Functions.AddMoney('bank', tonumber(money), 'farmer-payment')
--xPlayer.Functions.AddMoney('cash', tonumber(money), 'farmer-payment')
end
--[[
--transactionType = "Deposit" or "Payment" or "BossWithdraw"
--operationType = "Forklift" "BaleStoring" "Harvester" "Harvesting" "Tractor" "Planter" "Planting" "RaundBailer" "RaundBaling" "BaleTrailer" "BaleLoading"
local parcel =
if transactionType == "Payment" then
--local xPlayer = ESX.GetPlayerFromId(src)
--xPlayer.addInventoryItem("itemName",totalParcel)
--local xPlayer = QBCore.Functions.GetPlayer(src)
--xPlayer.Functions.AddItem("itemName", totalParcel)
if operationType == "Planting" then
local totalParcel = math.floor(money / PLT.Payments.Planting)
elseif operationType == "Harvesting" then
local totalParcel = math.floor(money / PLT.Payments.Harvesting)
elseif operationType == "RaundBaling" then
local totalParcel = math.floor(money / PLT.Payments.RaundBailing)
elseif operationType == "BaleLoading" then
local totalParcel =1
elseif operationType == "BaleStoring" then
local totalParcel = 1
end
elseif transactionType == "Deposit" then
if operationType == "Tractor" then
elseif operationType == "Planter" then
elseif operationType == "Harvester" then
elseif operationType == "RaundBailer" then
elseif operationType == "BaleTrailer" then
elseif operationType == "Forklift" then
end
elseif transactionType == "BossWithdraw" then
end
]]
endClothing System
Notifications system
Arrangement about spawned vehicles
Add new tree
Add new construction
Last updated