AMX Mod X API Documentation

Signature
native get_user_menu(index, &id, &keys);
Description

Returns if the client is watching a menu.

Notes
  • If there is no menu, the id is 0. If the id is negative, then the client

    views a VGUI menu. Otherwise, the id is an id acquired from the

    register_menuid() function.

Parameters
  • index Client index
  • id Variable to store menu id to
  • keys Variable to store menu keys to
Returns

1 if client views a menu, 0 otherwise

Errors
  • If the client index is not within the range of 1 to

    MaxClients, an error will be thrown.

Назад
Верх