_POINTER_IS_LEFT_BUTTON_HELD
Returns true if player is holding LMB while cursor is active
Hash
0x61CAE9D1FD055E44Runtime name
PointerIsLeftButtonHeldNamespaceINTERACTION
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _POINTER_IS_LEFT_BUTTON_HELD();Returns BOOL
Description
Returns true if player is holding LMB while cursor is active
_PI* - _PO*
Usage
local retval = PointerIsLeftButtonHeld()
-- always works, by hash
local retval = Citizen.InvokeNative(0x61CAE9D1FD055E44, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = PointerIsLeftButtonHeld();
// by hash
const retval = Citizen.invokeNative('0x61CAE9D1FD055E44', Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x61CAE9D1FD055E44);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.