For the complete documentation index, see llms.txt. This page is also available as Markdown.

βš™οΈInstallation

  • Put the plt_lumberjack & plt_lumberjack-streams files in your resource file. Add them to your server.cfg.

  • Check the config.lua. and configure to script settings how you want.

  • If you are using ESX or QB-Core frameworks; you don't have to make any changes. it is ready to work. Otherwise check #Framework money & job functions

  • The script has no requirements. ui and notifications itself. if you want you can use other notification system. check #Notifications system

  • If you want to do something when vehicle spawns, like giving a key to the player, changing the fuel of the vehicle or something #Arrangement about spawned vehicles

  • You should set the outfit values according to your own server #Clothing System. The clothes changing system can work standalone. If you want, you can use the qb-clothing or esx_skin system.

Framework money & job functions

If you are use ESX & QB-Core frameworks you don't need to change or add anything, they already been added.

server/server.lua
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
  ]]
end

Clothing System

Notifications system

Arrangement about spawned vehicles

Add new tree

Add new construction

Last updated