RedM Natives

IS_USING_KEYBOARD_AND_MOUSE

padIndex is not used Old name: _IS_USING_KEYBOARD

Hash0xA571D46727E2B718
Runtime nameIsUsingKeyboardAndMouse
NamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA571D46727E2B718

Signature

BOOL IS_USING_KEYBOARD_AND_MOUSE(int control);

Parameters

NameTypeDescription
controlint—

Returns BOOL

Description

padIndex is not used

Old name: _IS_USING_KEYBOARD

Usage

Lua
local retval = IsUsingKeyboardAndMouse(control)

-- always works, by hash
local retval = Citizen.InvokeNative(0xA571D46727E2B718, control, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsUsingKeyboardAndMouse(control);

// by hash
const retval = Citizen.invokeNative('0xA571D46727E2B718', control, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xA571D46727E2B718, control);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.