Skip to content

(DOC) Swap on_key_up and on_key_down in RegisterRawKeymap#3841

Open
KadDarem wants to merge 1 commit intocitizenfx:masterfrom
KadDarem:master
Open

(DOC) Swap on_key_up and on_key_down in RegisterRawKeymap#3841
KadDarem wants to merge 1 commit intocitizenfx:masterfrom
KadDarem:master

Conversation

@KadDarem
Copy link
Contributor

Goal of this PR

Fix the RegisterRawKeymap arguments order in the example; the down function is the second argument, not the third:
on_key_down <-> on_key_up

How is this PR achieving the goal

Swap two functions name in the LUA example

This PR applies to the following area(s)

RedM

Successfully tested on

It's a documentation example

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

Fix the RegisterRawKeymap arguments order in the example
@github-actions github-actions bot added RedM Issues/PRs related to RedM triage Needs a preliminary assessment to determine the urgency and required action labels Feb 26, 2026
@KadDarem KadDarem changed the title Swap on_key_up and on_key_down in RegisterRawKeymap (DOC) Swap on_key_up and on_key_down in RegisterRawKeymap Feb 26, 2026
@github-actions github-actions bot added invalid Requires changes before it's considered valid and can be (re)triaged and removed triage Needs a preliminary assessment to determine the urgency and required action labels Feb 26, 2026
@AvarianKnight
Copy link
Contributor

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged RedM Issues/PRs related to RedM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants