force_hook
Run any Garry's Mod hook with tagged arguments to test gamemode logic without reproducing the exact in-game situation. Requires confirmation for safety.
Instructions
GUARDED. Runs hook.Run(name, ...) to exercise a gamemode path without reproducing the situation. JSON cannot carry an Entity, so arguments may be tagged: {"__ent": 3}, {"__ply": "STEAM_0:1:2"}, {"__vec": [x,y,z]}, {"__ang": [p,y,r]}. Requires confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Positional arguments, tagged where they are game objects. | |
| name | Yes | Hook name, e.g. PlayerSpawn. | |
| confirm | No | Must be true: this changes the running game and is audited. Otherwise the call is refused. |