print: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client & Server|1.0}} {{FuncDescription|Prints a message to the console and log. See ClientParameters where client logs are written to.}} {{FuncSyntax|p...")
 
(No difference)

Latest revision as of 16:40, 26 September 2020

print

Type: Function
Context: Client & Server
Introduced: v1.0

Description

Prints a message to the console and log.

See ClientParameters where client logs are written to.

Syntax

print(...)

Parameters

  • ...
    Parameters of any type

Return Value

  • Returns nothing.

Example

local function OnPackageStart()
	print(GetPackageName().." started")
end
AddEvent("OnPackageStart", OnPackageStart)