CutscenesClient

canSetEnterStateForRegisteredEntity

CAN_SET_ENTER_STATE_FOR_REGISTERED_ENTITY0x645D0B458D8E17B5

The GTA V native CAN_SET_ENTER_STATE_FOR_REGISTERED_ENTITY of the CUTSCENE namespace, as LS:MP client scripts call it: the global function canSetEnterStateForRegisteredEntity, in JavaScript and in Lua.

SignatureJavaScript
canSetEnterStateForRegisteredEntity(
  cutsceneEntName: string,
  modelHash: Hash
): boolean
SignatureLua
canSetEnterStateForRegisteredEntity(
  cutsceneEntName: string,
  modelHash: Hash
): boolean

Usage

JavaScript
const result = canSetEnterStateForRegisteredEntity(cutsceneEntName, modelHash);
Lua
local result = canSetEnterStateForRegisteredEntity(cutsceneEntName, modelHash)

Parameters

ParameterTypeJavaScriptLua
cutsceneEntNamestringstringstring
modelHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

modelHash (p1) was always 0 in R* scripts

Reference

Namespace
Cutscenes CUTSCENE
In the game
BOOL CAN_SET_ENTER_STATE_FOR_REGISTERED_ENTITY(const char* cutsceneEntName, Hash modelHash)
Hash
0x645D0B458D8E17B5

Open in the interactive natives reference