Payment and Boss
π΅ Payment System
Players receive payment for each row they complete. The total amount is calculated by multiplying the number of parcels in the row by the payment value per parcel.
Example: If a row contains 30 parcels and the planting job pays 52 per parcel, the player earns 30 Γ 52 = 1560.
Payment rates can be adjusted via the PLT.Payments
table inside config.lua
.
Each job type (planting, harvesting, baling, etc.) has its own configurable payment value.
Additionally, config.lua
defines how many parcels a player can complete per hour for each job stage.
When the script is restarted, the server console prints estimated hourly income and rental costs based on those values.
π’ Company System
The script is integrated with a company account system. The company balance is automatically updated based on all player payments and rental transactions.
Salaries paid to players are deducted from the company account.
Rental fees paid by players are added directly to the company account.
Deposits paid by players are also transferred to the company. If the vehicle is not returned, the deposit remains with the company.
Additionally:
Grains harvested and bales collected by players are stored in the company warehouse.
The company owner can sell these grains and bales to generate income.
The sale prices for grains and bales can be configured via the
config.lua
file.
When the script is restarted, product sale costs (based on player wages) are calculated and printed to the server console. This cost estimation assumes players work at optimal speed. However, if they idle or fail to return vehicles, they may pay extra rental fees or lose their deposit β which results in extra profit for the company.
There is also a dedicated Discord Webhook system for company management. All salary payments, rental income, deposit transactions, sales, and cash withdrawals are logged in detail via Discord Webhook for server admins.
π₯ Information Printed to Server Console
When the script starts, based on your config settings, the following information is printed for each job (Planting, Harvesting, Baling, Bale Loading, Bale Storage):
π° Player Earnings
For each job: estimated hourly gross income, rental costs, and net profit are calculated.
π° Product Costs & Sale Profits
The unit production cost of each product (e.g., wheat or hay bale) is calculated. Sale prices are retrieved from the config file, allowing the system to adapt automatically if prices change. By comparing production costs and sale prices, the companyβs profit per unit is determined. This helps admins clearly understand how much profit the company earns indirectly through player activity.
π¦ Additional Info
Other details such as total company balance, silo stock levels, and logs of past salaries and rental income are also printed to the console. Defined managers (Boss IDs) are listed in the logs.
Last updated