Configuration
Check the instructions below.
The primary configuration file is Config.lua
. Localizations and additional settings can be adjusted in locales/en.lua
.
General Settings
MySQL
MySQL library to use (oxmysql
, mysql-async
, ghmattimysql
, or false
).
"oxmysql"
Framework
Framework used (qb
, esx
).
"qb"
Locale
Language for the script.
"en"
FarmSellTax
Tax percentage applied when selling produce.
25
FarmNameFormat
Format for farm names (e.g., {defaultname}
, {firstname}
).
"{defaultname}"
JobRequirement
Require a specific job to manage farms.
false
JobName
Job name required to access the farm (if enabled).
"farmer"
Chicken and Egg Settings
EggItem
Item name for eggs.
"egg"
EggCrackPeriod
Time (minutes) for eggs to crack.
1
EggOvulationPeriod
Time (minutes) for chickens to lay eggs.
1
ChickenFeedItem
Item name for chicken feed.
"chicken-feed"
ChickenSellPrice
Price for selling a chicken.
1000
CollectingExp
Experience gained for collecting eggs or managing chickens.
20
ChickenHungerTime
Interval (minutes) for chicken hunger to decrease.
5
Farm Settings
Farms
List of farms available for purchase.
(See example below)
SellerNpc
NPC model for selling farm products.
"a_m_m_farmer_01"
SellerNpcCoords
Coordinates for the seller NPC.
vector3(1912.91, 4931.70, 48.86)
VehicleSpawnCoords
Coordinates for spawning delivery vehicles.
vector4(1791.09, 5029.83, 56.91, 306.08)
VehicleDestination
Coordinates for the delivery destination.
vector3(1905.64, 4948.85, 50.89)
Example Farm Configuration
Notifications
Custom notifications for client and server events.
ClientNotify
Displays a notification to the client.
ServerNotify
Displays a notification to a specific player.
Example Notification Usage
Localization
The script supports multiple languages through localization files like locales/en.lua
.
Example Localization Keys
Data Storage
All data is recorded in JSON files located in the data/
directory. No SQL setup is required unless MySQL is explicitly enabled.
chicken_animals.json
Records chicken data.
chicken_eggs.json
Records egg data.
chicken_farms.json
Records farm data.
Last updated