| Property | Value |
|---|---|
| Native Name | REGISTER_ENTITY_FOR_CUTSCENE |
| Hash | 0xE40C1C56DF95C2E8 |
| Return Type | void |
| Parameters | cutsceneEntity (Entity), cutsceneEntName (char*), p2 (int), modelHash (Hash), p4 (int) |
Description: This can only be run once CAN_REQUEST_ASSETS_FOR_CUTSCENE_ENTITY is true, but can be run before HAS_CUTSCENE_LOADED
Parameters
cutsceneEntity(Entity) — Entity to put into the cutscene.cutsceneEntName(char*) — cHandle of cutscene entity, i.e Michael, MP_1, MP_4, Lamarp2(int)modelHash(Hash) — Not strictly neccasary, often 0 in R* scriptsp4(int) — 0 for SP, 64 for MP seemingly
Examples
-- An example that allows for registering non player_zero peds in place, i.e MP peds.
RequestCutscene("family_5_mcs_5_p5", 8)
repeat Wait(0) until CanRequestAssetsForCutsceneEntity()
SetCutscenePedComponentVariationFromPed("Michael", PlayerPedId(), 0)
-- Registering can occur at any point past here before starting the cutscene.
RegisterEntityForCutscene(PlayerPedId(), "Michael", 0, 0, 64)
repeat Wait(0) until HasCutsceneLoaded()
StartCutscene(0)