RemoveCommandHandler: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 27: Line 27:
* Available only in server-side resource scripts.
* Available only in server-side resource scripts.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:Command Functions]]
[[Category:Command Functions]]
[[Category:Chat Functions]]
[[Category:Chat Functions]]

Latest revision as of 09:54, 15 August 2026

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.