Ignores presses while a ug-lib dialog, context menu, radial or skill check is open.
- The mapping is registered in your resource, as
+<resource>-<name>, so players find it under your resource. GetKeyreturns the key the player bound, such asGafter a rebind. Keys the game shows as an icon, such as mouse buttons, returndefaultKey. Read it each time you show it.- FiveM cannot unregister a key mapping:
Removedisables it for good. Registering the same name again reuses it.
Example
client.lua