Static methods

@:native("GetCutFileNumSections")staticGetCutFileNumSections(cutsceneName:String):Int

@:native("GetCutsceneEndTime")staticGetCutsceneEndTime():Int

Returns the time of the cutscene's end accounting for REQUEST_CUTSCENE_WITH_PLAYBACK_LIST

If a cutscene is laid out with 10 second sections, and section 0 and 1 are enabled then it would be 20000ms.

NativeDB Introduced: v1734

@:native("CanRequestAssetsForCutsceneEntity")staticcanRequestAssetsForCutsceneEntity():Bool

Returns when it is safe to start applying changes to cutscene entities.

Should always be used for applying components.

See SET_CUTSCENE_PED_COMPONENT_VARIATION_FROM_PED and REGISTER_ENTITY_FOR_CUTSCENE for an example.

This will be true before the cutscene is considered loaded

@:native("CanSetEnterStateForRegisteredEntity")staticcanSetEnterStateForRegisteredEntity(cutsceneEntName:String, modelHash:Int):Bool

modelHash (p1) was always 0 in R* scripts  

@:native("CanSetExitStateForCamera")staticcanSetExitStateForCamera(p0:Bool):Bool

Whether or not it is safe to run functions on the camera, as the camera is now no longer being used by the cutscene.

@:native("CanSetExitStateForRegisteredEntity")staticcanSetExitStateForRegisteredEntity(cutsceneEntName:String, modelHash:Int):Bool

Returns if the script can begin interacting with the registered entity. Primarly used for lead-outs of cutscenes. Returns on frame after cutscene ends, so you cannot get is while using IsCutsceneActive()

Whether it is safe to start doing scripted actions on the entity, like simulating walking out of a cutscene.

@:native("DoesCutsceneEntityExist")staticdoesCutsceneEntityExist(cutsceneEntName:String, modelHash:Int):Bool

@:native("GetCutscenePlayTime")staticgetCutscenePlayTime():Int

Gets the current time of the cutscene.

NativeDB Introduced: v3258

@:native("GetCutsceneSectionPlaying")staticgetCutsceneSectionPlaying():Int

@:native("GetCutsceneTime")staticgetCutsceneTime():Int

Gets the elapsed time of the current cutscene in

@:native("GetCutsceneTotalDuration")staticgetCutsceneTotalDuration():Int

Gets the total length of the cutscene irrespective of playback list in milliseconds To account for sections, see _GET_CUTSCENE_END_TIME

@:native("GetEntityIndexOfCutsceneEntity")staticgetEntityIndexOfCutsceneEntity(cutsceneEntName:String, modelHash:Int):Dynamic

Returns the handle of a cutscene entity, can be ped

@:native("GetEntityIndexOfRegisteredEntity")staticgetEntityIndexOfRegisteredEntity(cutsceneEntName:String, modelHash:Int):Dynamic

@:native("HasCutFileLoaded")statichasCutFileLoaded(cutsceneName:String):Bool

Simply checks if the cutscene has loaded and doesn't check via CutSceneManager as opposed to HAS_[THIS]_CUTSCENE_LOADED.

@:native("HasCutsceneCutThisFrame")statichasCutsceneCutThisFrame():Bool

@:native("HasCutsceneFinished")statichasCutsceneFinished():Bool

@:native("HasCutsceneLoaded")statichasCutsceneLoaded():Bool

@:native("HasThisCutsceneLoaded")statichasThisCutsceneLoaded(cutsceneName:String):Bool

@:native("IsCutsceneActive")staticisCutsceneActive():Bool

@:native("IsCutscenePlaybackFlagSet")staticisCutscenePlaybackFlagSet(flag:Int):Bool

@:native("IsCutscenePlaying")staticisCutscenePlaying():Bool

@:native("RegisterEntityForCutscene")staticregisterEntityForCutscene(cutsceneEntity:Dynamic, cutsceneEntName:String, p2:Int, modelHash:Int, p4:Int):Dynamic

This can only be run once CAN_REQUEST_ASSETS_FOR_CUTSCENE_ENTITY is true, but can be run before HAS_CUTSCENE_LOADED

@:native("RegisterSynchronisedScriptSpeech")staticregisterSynchronisedScriptSpeech():Dynamic

Only used twice in armenian1.c

@:native("RemoveCutFile")staticremoveCutFile(cutsceneName:String):Dynamic

Simply unloads the cutscene and doesn't do extra stuff that REMOVE_CUTSCENE does.

@:native("RemoveCutscene")staticremoveCutscene():Dynamic

@:native("RequestCutFile")staticrequestCutFile(cutsceneName:String):Dynamic

Simply loads the cutscene and doesn't do extra stuff that REQUEST_CUTSCENE does.

@:native("RequestCutscene")staticrequestCutscene(cutsceneName:String, flags:Int):Dynamic

@:native("RequestCutsceneWithPlaybackList")staticrequestCutsceneWithPlaybackList(cutsceneName:String, playbackFlags:Int, flags:Int):Dynamic

playbackFlags: Which scenes should be played.
Example: 0x105 (bit 0, 2 and 8 set) will enable scene 1, 3 and 9.

@:native("SetCutsceneCanBeSkipped")staticsetCutsceneCanBeSkipped(p0:Bool):Dynamic

@:native("SetCutsceneEntityStreamingFlags")staticsetCutsceneEntityStreamingFlags(cutsceneEntName:String, p1:Int, p2:Int):Dynamic

Only used in networked environment with MP cutscenes

@:native("SetCutsceneFadeValues")staticsetCutsceneFadeValues(p0:Bool, p1:Bool, p2:Bool, p3:Bool):Dynamic

@:native("SetCutsceneOrigin")staticsetCutsceneOrigin(x:Float, y:Float, z:Float, heading:Float, p4:Int):Dynamic

Sets cutscene location, used for multiplayer apartments/businesses.

@:native("SetCutscenePedComponentVariation")staticsetCutscenePedComponentVariation(cutsceneEntName:String, componentId:Int, drawableId:Int, textureId:Int, modelHash:Int):Dynamic

@:native("SetCutscenePedComponentVariationFromPed")staticsetCutscenePedComponentVariationFromPed(cutsceneEntName:String, ped:Dynamic, modelHash:Int):Dynamic

Sets the components for a cutscene ped, this will take precendence over the cutscene's component overrides. This does not require the entity be registered.

See

@:native("SetCutscenePedPropVariation")staticsetCutscenePedPropVariation(cutsceneEntName:String, componentId:Int, drawableId:Int, textureId:Int, modelHash:Int):Dynamic

@:native("SetCutsceneTriggerArea")staticsetCutsceneTriggerArea(p0:Float, p1:Float, p2:Float, p3:Float, p4:Float, p5:Float):Dynamic

Only used twice in R* scripts  

@:native("StartCutscene")staticstartCutscene(flags:Int):Dynamic

flags: Usually 0.

@:native("StartCutsceneAtCoords")staticstartCutsceneAtCoords(x:Float, y:Float, z:Float, flags:Int):Dynamic

Similar to SET_CUTSCENE_ORIGIN but without heading and doesn't need START_CUTSCENE

@:native("StopCutscene")staticstopCutscene(p0:Bool):Dynamic

@:native("StopCutsceneImmediately")staticstopCutsceneImmediately():Dynamic

Stop cutscene instantly, will dump registered entities right where they were when ran.

@:native("WasCutsceneSkipped")staticwasCutsceneSkipped():Bool