native

menu_cancel

Syntax

native menu_cancel(player);

Description

Cancels a player's menu, effectively forcing the player to select MENU_EXIT.
The menu will still exist on their screen but any results are invalidated,
and the callback is invoked.

Parameters

player Client index.

Return

This function has no return value.

Error

Invalid client index.