Skip to main content

Overview

sure_lib is a focused Lua 5.4 helper library for FiveM resources that use ox_lib and es_extended. It is designed around lazy module loading: a consuming resource imports one shared loader, then requests the module it needs through sure.getModule(moduleName).

Shared

validator, listener, track, and config run on both client and server.

Client

player, spawn, lui, and client cooldown handle local runtime work.

Server

db, esx, and server cooldown apply authoritative gameplay changes.

Module catalog

sure_lib does not load every module eagerly. Side-specific modules return nil when requested from the wrong runtime, which helps keep client/server boundaries clear.

Repository shape

fxmanifest.lua
init.lua
shared
init.lua
modules
validator
index.lua
client
server

How data moves

Use sure_lib when you want small runtime helpers without hiding the underlying FiveM and ESX concepts.

Getting Started

Install sure_lib and load your first module

Module Loader

How sure.getModule resolves shared, client, and server modules