OnPlayerKeyStateChange and Dialogs
#1

Is it possible to detect if the player uses the ENTER button in a dialog?
Because I tried newkeys == 16 (the one for entering a vehicle)
But that only works when there's no dialog on your screen.
If there's a dialog on your screen, you just press OK.
So, is there a possibility to check if you use enter to press the OK button in a dialog?
Reply
#2

OnDialogResponse

You can check my tutorial if you need it.
Reply
#3

I've already attempted using GetPlayerKeys when a player is using a Dialog in hopes to make a 'quick interaction' for my inventory, so instead of clicking on the item, and the clicking 'use', you could just hold alt and click on the item and it will automatically use it. Unfortunately, it appears that keys do not register with the server when a Dialog is open for a player.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)