Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Hi guys!
I'm trying to write a script, that shows some text when the player opens the menu, and hides it when it's closed.
PlayerConnected += new Action((player) => { player.Call("notifyOnPlayerCommand", "test", "togglemenu"); player.OnNotify("test", (entity) => { Call("clientprint", entity, "test"); }); });This is the code i tried, because i found this in the key bindings:
"bind ESCAPE togglemenu"
The same method worked for the voting keys by using "vote yes" and "vote no" instead of togglemenu.
Is it possible to do what i want?
Hiding the text is not a problem, i already have the code that hides it when the player closes the menu, i got that by onnotify menuresponse, but there's no menuresponse when the menu is opened.