[HELP]What exactly does DisableMenu?
#1

Hello,
I just saw this function over the SA-MP Wiki and it hasn't a good description, at least I didn't understand it.

Is it the same as HideMenuForPlayer? Or it deletes the menu for ever?

Thank you!
Reply
#2

It's to disable a menu lol, but you should use it anymore, it's out of date man, use dialogs or clickable textdraw.
Reply
#3

It only DISABLES the menu TEMPORARILY but if you want it PERMANENTLY this is what you want: https://sampwiki.blast.hk/wiki/DestroyMenu

Hope i helped
Reply
#4

Couldn't find any function "HideMenuForPlayer"
and It temporarily disables for permanent its DestroyMenu
Reply
#5

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
Couldn't find any function "HideMenuForPlayer"
and It temporarily disables for permanent its DestroyMenu
Lol you have quoted me in your signature haha nice.
Reply
#6

Suppos i type /weapons so there will be an menu we can say an dailog like
PHP код:
WeaponMenu CreateMenu("Weapons"150.0180.0200.0200.0);
AddMenuItem(WeaponMenu0"Rocket Launcher");
AddMenuItem(WeaponMenu0"Flamethrower");
AddMenuItem(WeaponMenu0"Minigun");
AddMenuItem(WeaponMenu0"Grenades"); 
No 1:|" Rocket Launcher"
NO 2:|Flame Thrower
NO 3:| Minigun
NO 4:|Gerandes
EXAMPLE> if you click on any one of them so the function will work as
PHP код:
GivePlayerWeapon(369999); 
and hide menu it will hide it
Reply
#7

Quote:
Originally Posted by Roel
Посмотреть сообщение
It's to disable a menu lol, but you should use it anymore, it's out of date man, use dialogs or clickable textdraw.
That's not my point.
My question is, is it the same as HideMenuForPlayer or it has any other effect?
_____________________________
Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
It only DISABLES the menu TEMPORARILY but if you want it PERMANENTLY this is what you want: https://sampwiki.blast.hk/wiki/DestroyMenu

Hope i helped
So, it disables it for some time, and appears again later?
_____________________________
Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
Suppos i type /weapons so there will be an menu we can say an dailog like
PHP код:
WeaponMenu CreateMenu("Weapons"150.0180.0200.0200.0);
AddMenuItem(WeaponMenu0"Rocket Launcher");
AddMenuItem(WeaponMenu0"Flamethrower");
AddMenuItem(WeaponMenu0"Minigun");
AddMenuItem(WeaponMenu0"Grenades"); 
No 1:|" Rocket Launcher"
NO 2:|Flame Thrower
NO 3:| Minigun
NO 4:|Gerandes
EXAMPLE> if you click on any one of them so the function will work as
PHP код:
GivePlayerWeapon(369999); 
and hide menu it will hide it
Are you trying to explain that if I use DisableMenu, options won't be selectable anymore?
_____________________________
I'm too lazy to test right now, but no one cleared my doubt yet.
Reply
#8

Quote:
Originally Posted by irinel1996
Посмотреть сообщение
I'm too lazy to test right now, but no one cleared by doubt yet.
if there will be no menu mean hidden then is it possible to click ? 0f course NO
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)