Common Issues and FAQ
Common Issues
Performing a Fresh Install
When troubleshooting errors, the initial step is to perform a fresh installation, as it resolves approximately 95% of the issues reported in support tickets. Carefully follow the guide below to ensure a successful fresh install.
Executing a fresh install is a critical procedure when encountering errors, even if you have just purchased the script and this is your first installation.
Refer to the fresh install guide to access the detailed steps for performing the process.
The UI is not opening
- If the UI fails to open, do a fresh script installation as detailed above.
- If you identify any errors in your F8 or the server console, review the list of common issues below on this page to see if any of them match your situation.
- If the issue persists, it's possible that you may have skipped a step during installation or made a mistake, please double check the install steps.
No such export GetUtils in resource lc_utils
- This error may occur when
lc_utilshas not been initialized. Please check in your server console for errors in thelc_utilsfile. - If
lc_utilshas been properly loaded without errors, this issue might be due to incorrect resource loading order in yourserver.cfg. Ensure thatlc_utilsis loaded before any of its dependencies.
"Failed to load script @PolyZone/client.lua." or "attempt to index a nil value (global 'PolyZone')"
- Ensure that you have installed the latest version of PolyZone and that it is working correctly.
- Double check the loading order of the scripts in your
server.cfg. PolyZone must start beforelc_farming_simulator. - Download link: PolyZone GitHub
"You dont have the required job to open this menu" error
- You need the job configured in
Config.farming_locations[n]['required_jobs']. You can disable the job requirement by setting it to{}. - Pay attention: the value in
required_jobsmust be the job name, not the job label. - If you have configured the job and it still doesn't work, check that you are on duty and that the job name matches exactly (case-sensitive).
Vehicles are not spawning / I cannot use farming vehicles
- This typically occurs when the modded vehicle models are not correctly installed. Try spawning the vehicles using the admin menu to verify they exist on your server.
- Verify that no anticheat or vehicle blacklist is preventing the vehicles from spawning.
- Check your F8 console for errors and make sure your keys and fuel script are correctly configured in
lc_utils. - If a vehicle model is missing, the script will be unable to spawn it. Ensure all custom vehicle packs are correctly streamed.
I have to hotwire / lockpick the farming vehicles
- Your keys script has not been configured correctly. You can configure it in
lc_utils/config.lua. - If your keys script is not pre-built into lc_utils, set the config to
"other"and configure the export inlc_utils/custom_scripts/client/keys.lua.
Crops are not growing / growth stages are not advancing
- Check your server console for any database errors. The crop growth timers are stored in the database and require MySQL to work.
- Ensure
mysql-async(or oxmysql) is running without errors โ the script depends on it for all data storage. - If you use
Config.debug = true, growth timers will be shown in-game to help diagnose the issue.
Items are not being given after harvesting
- Confirm that all crop items and seed items exist in your framework's item registry. Missing items will silently fail.
- Check the item names in
Config.cropsmatch the item names you registered in your framework. - If you use a custom inventory, verify the give-item function in
lc_utils/custom_scripts/server/inventory.lua.
Contracts are not being generated
- Check if
Config.available_contracts['definitions']['enabled']is set totrue. - Ensure at least one field has
['for_contracts'] = trueinConfig.fields_store. - If you recently changed the contract config, empty the
farming_simulator_available_contractstable in your database so new contracts are generated with your updated config.
Some players lose all their data after a few days
- This happens when a player takes out a loan but does not have enough money to repay it. When then loan cannot be repaid, the script wipes the player's data.
- To prevent this entirely, you can disable loans by setting
Config.disable_loans = truein the config.
SQL error: "Illegal mix of collations" or similar database collation error
- This error typically occurs the first time you run the script, before the database tables have been fully initialized with the correct collation settings.
- Simply restart the resource (or your server) and the error should resolve itself on the next startup.
Error parsing script / Failed to load script
- Your server artifacts are likely outdated. Update your server to version 5181 or above.
- This error occurs when uploading the script with Filezilla. You must use something like WinSCP.
You lack the required entitlement to use <resource>
- Try restarting your server and make sure your server key is correct. If you bought the resource on the wrong account, you can transfer it to another account on keymaster.
Failed to verify protected resource
- Files were possibly corrupted during transfer. Ensure hidden files are copied; the .fxap file in a protected resource must be included. Some FTP programs skip these files.
- This error occurs when uploading the script with Filezilla. You must use something like WinSCP.
FAQ
How do I reset a player's farming data?
- You have to manually delete the player's row from
farming_simulator_usersand all related rows fromfarming_simulator_fields,farming_simulator_vehicles,farming_simulator_silos,farming_simulator_animals, andfarming_simulator_penswhere theuser_idmatches.
How do I change a player's level or XP?
- Directly update the
xpandlevelcolumns in thefarming_simulator_userstable for the relevantuser_id.
How do fields get removed due to inactivity?
- When
Config.clear_fields['active']istrue, fields that have not been interacted with for longer thanConfig.clear_fields['cooldown']hours are automatically released back to the store. Affected players receive an in-game notification.
Can multiple players work on the same farm?
- Yes, but only one player can own a farm.
- The owner can hire employees through the employee management page, allowing them to plant, harvest, and perform other actions on the owner's farm.
How do keybinds work?
- Default keybinds are set in
Config.shortcuts. FiveM saves per-player keybinds after first use, so if a player has already saved a bind, changingConfig.shortcutswill not override their saved value โ they must rebind it in FiveM's Controls settings.