RemoveCommandHandler

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 12:45, 4 August 2026 by QCherry (talk | contribs) (Automatyczna aktualizacja dokumentacji funkcji)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

removeCommandHandler

Removes a command handler owned by the current resource.

Syntax

bool removeCommandHandler(string commandName)

Parameters

Name Type Required Description
commandName string yes Command name without the leading slash.

Returns

Returns true if a handler was removed; otherwise returns false.

Examples

Remove a command during resource shutdown:

removeCommandHandler("heal")

Notes

  • Available only in server-side resource scripts.