Two Menu's interfering?
#1

I downloaded a filterscript that contained a menu for some admin stuff. When i clicked on one of the things in the menu i was suprised that it took me to a car tuning menu that was in my gamemode. Is there a way i can stop making the admin menu from taking me to the car tuning menu without deleting the car tuning menu?.
Reply
#2

Are these actual menus? Textdraws or a dialog?
Reply
#3

They're dialogs
Reply
#4

That's not a problem. What you need to do is change the dialog ID of either the gamemode or the filterscript. I advice to change the filterscript one.

What you need to do is check OnDialogResponse and find the dialog ID then change all instances of the dialog ID to something not used - especially ShowPlayerDialog.
Reply
#5

Quote:
Originally Posted by SMCentral
Посмотреть сообщение
That's not a problem. What you need to do is change the dialog ID of either the gamemode or the filterscript. I advice to change the filterscript one.

What you need to do is check OnDialogResponse and find the dialog ID then change all instances of the dialog ID to something not used - especially ShowPlayerDialog.
Do i need to change the number of the cases?
Reply
#6

Yes then change the same number from any instances of ShowPlayerDialog.
Reply
#7

Quote:
Originally Posted by SMCentral
Посмотреть сообщение
Yes then change the same number from any instances of ShowPlayerDialog.
Ok i did it and the menu stopped interfering but when i click an option it does nothing. How do i fix that?.
Reply
#8

Make sure you also change the dialog ID in OnDialogResponse as well.

ShowPlayerDialog sends an ID to OnDialogResponse which determines the response.
Reply
#9

This is why y_dialogs are superior
Reply
#10

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
This is why y_dialogs are superior
Ssssssshhhhhhh. We all know you make love to y_dialogs every night!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)