Garry's Mod Wiki

widgets.PlayerTick

  widgets.PlayerTick( Player ply, CMoveData mv )

Description

This is used internally - although you're able to use it you probably shouldn't.

Automatically called to update all widgets.

Arguments

1 Player ply
The player
2 CMoveData mv
Player move data

Example

That's how it is used in lua/includes/modules/widget.lua

hook.Add( "PlayerTick", "TickWidgets", function( pl, mv ) widgets.PlayerTick( pl, mv ) end )