HELP - Custom key press event for all vehicles

Discussion in 'Programming' started by [YTGN] | Titch2000, Oct 2, 2020.

  1. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Hello All,

    Does anyone know of a way to get a key press/release event of any given keyboard key.

    Example:
    I am looking to have a given area of the map (already done) and in this given area I wish to call a function in Lua if the user pressed a specific key for example E.

    I hope this is clear enough for what I am looking to do.
    Any feedback and help appreciated.

    Many thanks
     
  2. NOCARGO

    NOCARGO
    Expand Collapse

    Joined:
    Apr 1, 2019
    Messages:
    1,514
    lua/ge/extensions/core/input/actions/gameplay.json ?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice