Documentation Index
Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt
Use this file to discover all available pages before exploring further.
Config
Theconfig module loads Lua configuration files from the consuming resource and caches the result. It can validate loaded values with the validator module before returning them.
Load a config file
config/settings.lua
shared.lua
File paths are normalized before loading, so
config/settings.lua resolves through the same module-style path as config.settings.Cache and reload
- load
- reload
config:load(filePath, schema?) returns the cached value after the first read. If you pass a schema later, the cached value is still validated before it is returned.Safe environment
Config files run with a small environment that includes common Lua helpers and vector constructors.| Available | Notes |
|---|---|
math, table, string | Standard helper libraries. |
pairs, ipairs, tonumber, tostring, type | Common functions for building config tables. |
vector3, vector4 | FiveM vector constructors. |
