Lua Events/OnTick

From PZwiki



Event

OnTick

Description

Triggered every tick, try to not use this one, use EveryTenMinutes instead because it can create a lot of frame loss/garbage collection.

Parameters

Examples

local function OnTick(numberTicks)
	-- Your code here
end

Events.OnTick.Add(OnTick)

See also