getEntityIndexOfRegisteredEntity
GET_ENTITY_INDEX_OF_REGISTERED_ENTITY0xC0741A26499654CDThe GTA V native GET_ENTITY_INDEX_OF_REGISTERED_ENTITY of the CUTSCENE namespace, as LS:MP client scripts call it: the global function getEntityIndexOfRegisteredEntity, in JavaScript and in Lua.
getEntityIndexOfRegisteredEntity(
cutsceneEntName: string,
modelHash: Hash
): EntitygetEntityIndexOfRegisteredEntity(
cutsceneEntName: string,
modelHash: Hash
): EntityUsage
JavaScript
const entity = getEntityIndexOfRegisteredEntity(cutsceneEntName, modelHash);Lua
local entity = getEntityIndexOfRegisteredEntity(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_REGISTERED_ENTITY(const char* cutsceneEntName, Hash modelHash)- Hash
0xC0741A26499654CD