canSetEnterStateForRegisteredEntity
CAN_SET_ENTER_STATE_FOR_REGISTERED_ENTITY0x645D0B458D8E17B5The 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.
canSetEnterStateForRegisteredEntity(
cutsceneEntName: string,
modelHash: Hash
): booleancanSetEnterStateForRegisteredEntity(
cutsceneEntName: string,
modelHash: Hash
): booleanUsage
JavaScript
const result = canSetEnterStateForRegisteredEntity(cutsceneEntName, modelHash);Lua
local result = canSetEnterStateForRegisteredEntity(cutsceneEntName, modelHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cutsceneEntName | string | string | string |
modelHash | Hash | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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