Garry's Mod Wiki

DHTML:OnCallback

  boolean DHTML:OnCallback( string library, string name, table arguments )

Description

Called by the engine when a callback function is called.

Arguments

1 string library
Library name of the JS function that was called.
2 string name
Name of the JS function that was called.
3 table arguments
Table containing all arguments passed to the JS function.

Returns

1 boolean
Return true to suppress default engine action.