Sign in to follow this  
nikola91

open chat T problem with typing

Recommended Posts

i try some script by my own but dosnt work,problem is when i open chat with T and then i write something in chat and i have function on my invertory sistem to open with press "i" when i type and write in chat my invertory sistem get open coz i press "i" while i typing in chat.

any suggestion and easy solution for this problem?

Edited by nikola91

Share this post


Link to post
Share on other sites

simple solution. block keybind when you already have cursor visible (which happens when you have chat or browser open as long as you did not change that😞

mp.keys.bind(0x45, false, function() {
    if (mp.gui.cursor.visible) return;
    here-you-would-open-browser-for-inventory-which-is-not-executed-if-cursor-is-displayed
});

 

Edited by cmdflow
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.