PLT Scripts
TEBEXDISCORDCFX TOPICS
  • ๐Ÿ‘‹PLT Fivem Developments
  • ๐Ÿ“œScripts
    • ๐ŸชตLumberjack JOBS
      • โ„น๏ธTechnical information
      • โš™๏ธInstallation
    • ๐ŸšœFarmer Jobs v2
      • ๐Ÿ–ฅ๏ธTechnical information
      • ๐Ÿ’ฐPayment and Boss
      • ๐Ÿ”Security and Webhoks
      • ๐Ÿš๏ธModelling
Powered by GitBook
On this page
  • ๐Ÿงพ Rental Validation System
  • โœ… Task Validation System
  1. Scripts
  2. Farmer Jobs v2

Security and Webhoks

Whenever a player rents a vehicle, all financial actions such as the deposit fee, rental charges, refund upon return, and payments made for completed jobs are automatically logged to Discord via webhook.

Additionally, a system designed for server managers (bosses) provides detailed Discord Webhook logs for the following actions: player payments, deposit collection, cash withdrawals from the company account, and grain or bale sales.

๐Ÿงพ Rental Validation System

To ensure security during vehicle rental and return operations, various validation checks are performed.

When renting a vehicle, the server verifies:

  • Whether the vehicle is available for rental

  • Whether the player is close enough to the rental point

Similarly, when returning a vehicle, the server checks:

  • If the player has actually rented that specific vehicle before

  • If the player is near the designated return coordinates

If any of the following conditions are detected:

  • The player is too far from the required location

  • The client sends incorrect or manipulated data

  • The vehicle is not eligible for rental

  • The player attempts to return a vehicle they never rented

The action is blocked, and a detailed alert is sent to server admins via Discord Webhook.

This system helps prevent abuse of the rental system and ensures maximum server security.


โœ… Task Validation System

During the planting, harvesting, and baling stages, several validation checks are performed both when players begin a row and when they complete it.

Before a player begins working on a row, the server performs the following validations:

  • Checks whether the player is close enough to the first parcel of the selected row

  • Verifies the accuracy of the client-side arguments sent by the player

  • Confirms that the selected row is suitable for the intended farming stage (planting, harvesting, or baling)

Before completing a row, the server performs the following checks:

  • Verifies that the player is at the correct coordinates

  • Confirms the accuracy of the client-side arguments

  • Checks whether the player has previously started that specific row

During the bale collection stage (with a trailer), the following additional checks are performed:

  • Verifies that the player is close to the correct parcel of the selected row

  • Checks whether a bale actually exists on that parcel

During the forklift transport phase to the storage area, the following checks are performed:

  • Verifies that there is actually a bale at the trailer spot the player is trying to pick from

  • Checks whether the player is in the correct position to pick up the bale with the forklift

  • During delivery, confirms whether the player has previously picked up a bale using the forklift

If any inconsistency is detected during these validations, the action is canceled and the event is reported in detail to server admins via Discord Webhook. This system ensures that row entry and completion processes are securely managed and helps prevent potential abuse.

PreviousPayment and BossNextModelling

Last updated 23 days ago

๐Ÿ“œ
๐Ÿšœ
๐Ÿ”