getEntityIndexOfCutsceneEntity
GET_ENTITY_INDEX_OF_CUTSCENE_ENTITY0x0A2E9FDB9A8C62F6The GTA V native GET_ENTITY_INDEX_OF_CUTSCENE_ENTITY of the CUTSCENE namespace, as LS:MP client scripts call it: the global function getEntityIndexOfCutsceneEntity, in JavaScript and in Lua.
getEntityIndexOfCutsceneEntity(
cutsceneEntName: string,
modelHash: Hash
): EntitygetEntityIndexOfCutsceneEntity(
cutsceneEntName: string,
modelHash: Hash
): EntityUsage
JavaScript
const entity = getEntityIndexOfCutsceneEntity(cutsceneEntName, modelHash);Lua
local entity = getEntityIndexOfCutsceneEntity(cutsceneEntName, modelHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cutsceneEntName | string | string | string |
modelHash | Hash | number | integer |
Returns
Entity JavaScript number, Lua integerGame handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Cutscenes CUTSCENE
- In the game
Entity GET_ENTITY_INDEX_OF_CUTSCENE_ENTITY(const char* cutsceneEntName, Hash modelHash)- Hash
0x0A2E9FDB9A8C62F6