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_utils
has not been initialized. Please check in your server console for errors in thelc_utils
file. - If
lc_utils
has been properly loaded without errors, this issue might be due to incorrect resource loading order in yourserver.cfg
. Ensure thatlc_utils
is loaded before any of its dependencies.
I'm having issues with jerry can
- By default, the jerry can is added to your inventory as an item with no metadata.
- If the jerry can is not refuelling the vehicle, this probably means that your inventory is detecting the jerry can as empty.
- If you cannot buy the jerry can, probably you the inventory gives the item in a different way than planned by the script.
- In both situations you have to:
- There has some easy settings in config.lua in
Config.JerryCan
that allow you to customize how the jerry can is given. - If you need to edit the functions navigate to
lc_utils/custom_scripts/server/inventory.lua
, locate thegivePlayerWeapon
andgivePlayerItem
function and update it according to your inventory documentation.
- Each inventory has a different way to handle weapons/itens so it's hard to give a precise answer to this issue. Please refer to your inventory documentation to learn the specific methods for accomplishing this.
FAQ
How to change the default gas price?
- To modify the default gas price, access the config.lua, search for
Config.DefaultValues
. Adjust their values accordingly.
How to change the refuelling speed?
- Go on config.lua and change the
Config.RefuelTick
to the time you want. Lower is faster.
What is the difference between Regular, Plus, Premium, and Diesel fuel types?
- Each fuel type has its own efficiency, higher-quality fuels provides better fuel economy.
- Diesel is a special fuel designed only for diesel engines. Refueling a gasoline-powered vehicle with diesel can damage its engine.
I must use the fuel scripts provided with the gas station?
- Yes! You must use one of the fuel scripts provided in the script file, or the things will not work properly.
- The fuel scripts code are open source, so you can edit anything you want there.
How to change the notification?
- In
lc_utils/custom_scripts/client/notification.lua
file you can find the default script notification, replace the existing notification with yours.
How to customize the UI?
- The UI's source code is unencrypted, allowing easy access to HTML, JS, and CSS files for customization. Proficiency in programming is necessary to make changes effectively.