Garry's Mod Wiki

widgets.PlayerTick

void 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 )

Page Links


Special Pages


Wikis

?

Render Time: 22ms

Session 0
DB GetPage 4
Generate Html 2
SaveChanges 9
Render Body 0
Render Sidebar 5