Sandbox
Standard Lua functions that behave differently in GAMPEON.
print(...)Write a line to the server or client log, tagged with the resource name. Server and client.
| Parameter | Type | Description |
|---|---|---|
... |
any |
Values, separated by tabs. |
print('player joined', source)Compared to FiveM: Same as in FiveM.
load(chunk, chunkname?, mode?, env?) --> function?, string?Compile Lua source text. Precompiled bytecode is refused. Server and client.
| Parameter | Type | Description |
|---|---|---|
chunk |
string |
Lua source text. |
chunkname (optional) |
string |
Name used in error messages. |
mode (optional) |
string |
Ignored; only text is accepted. |
env (optional) |
table |
Environment of the chunk. |
Returns
function?: The compiled function, or nil on error.string?: Error message.
Compared to FiveM: FiveM allows bytecode; GAMPEON does not, for security.
Citizen.Trace
Section titled “Citizen.Trace”Citizen.Trace(...)Write to the server or client log, like print. Server and client.
| Parameter | Type | Description |
|---|---|---|
... |
any |
Values. |
Citizen.Trace('loaded')Compared to FiveM: FiveM prints without a line break; GAMPEON writes one log line.