
sure_lib
v2.2.1 Lua 5.4 FiveM sure_lib is a modern-first Lua 5.4 utility library for FiveM resources. It gives resource authors focused modules for validation, event safety, reactive state, config loading, entity spawning, cooldown synchronization, database models, ESX transactions, player shortcuts, and Lua-driven NUI rendering.Start with installation
Add the shared loader, confirm dependencies, and load your first module.
Understand modules
Learn how
sure.getModule(...) resolves shared, client, and server modules.Validate runtime data
Build schemas for events, callbacks, configs, and command payloads.
Reference every API
Scan method signatures, parameters, return values, and runtime availability.
Build Lua UI
Render bundled NUI pages from Lua node trees, reactive state, and motion components.
This documentation is written for the latest
sure_lib repository state at commit 30b3cfd and resource version 2.2.1.Runtime map
Recommended path
Load only what you need
Call
sure.getModule('validator'), sure.getModule('lui'), sure.getModule('db'), or another module from the side where it exists.