Print: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 29: Line 29:
* Available in both client-side and server-side resource scripts.
* Available in both client-side and server-side resource scripts.


[[Category:Lua Functions]]
[[Category:Shared Functions]]
[[Category:Shared Functions]]
[[Category:Debug Functions]]
[[Category:Debug Functions]]
[[Category:Utility Functions]]
[[Category:Utility Functions]]

Latest revision as of 09:54, 15 August 2026

print

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.