The Lab
PAD native

IS_USING_KEYBOARD_AND_MOUSE

returns BOOL1 parambuild 1207

Returns true if the last input for control came from a keyboard and mouse rather than a gamepad.

Signature

C
BOOL IS_USING_KEYBOARD_AND_MOUSE(int control); // 0xA571D46727E2B718 b1207

Parameters

#NameType
1controlint

Facts

Facts about IS_USING_KEYBOARD_AND_MOUSE
Name
IS_USING_KEYBOARD_AND_MOUSE
Hash
0xA571D46727E2B718
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xA571D46727E2B718, -- IS_USING_KEYBOARD_AND_MOUSE
  0 -- int control
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xA571D46727E2B718", // IS_USING_KEYBOARD_AND_MOUSE
  0, // int control
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xA571D46727E2B718, // IS_USING_KEYBOARD_AND_MOUSE
  0 // int control
);
All PAD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.