Writes one or more Lua values to the resource log, separated by tabs.
Syntax
print(...)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
... |
any |
yes | Values to print. Strings, numbers, booleans and nil are formatted directly. |
Returns
This function does not return a value.
Examples
Print a player's identifier and current state:
local playerId = 7
local state = "ready"
print("Player", playerId, state)
Notes
- Available in both client-side and server-side resource scripts.