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.
Module Loader
The shared loader creates a globalsure table and exposes sure.getModule(name). It resolves the requested module by name, checks the current runtime side, and requires the correct Lua file.
The loader is imported with
shared_script '@sure_lib/init.lua'. On the client, sure.player is automatically assigned to the client player module.Resolution table
| Name | Client | Server |
|---|---|---|
validator | Shared module | Shared module |
listener | Shared module | Shared module |
track | Shared module | Shared module |
config | Shared module | Shared module |
player | Client module | nil |
spawn | Client module | nil |
lui | Client module | nil |
cooldown | Client module | Server module |
db | nil | Server module |
esx | nil | Server module |
API shape
Module name. Names are case-insensitive in practice because the loader lowercases the input.
Returns the module table when the module exists on the current side. Returns
nil for unknown modules, non-string names, or side-specific modules requested from the wrong side.shared.lua
