engineStreamingGetModelLoadState | Multi Theft Auto: Wiki Skip to content

engineStreamingGetModelLoadState

Client-side
Server-side
Shared

Added in 1.6.0 r22676

This function returns load state of model.

Syntax

string engineStreamingGetModelLoadState ( ​number modelID )
Required Arguments
  • modelID: ID of the model you want to get flags.

Returns

  • string: load state
    • unloaded: Model is not loaded.
    • loaded: Model is loaded.
    • requested: Model is waiting for loading.
    • reading: Model is being read.
    • finishing: Second reading state for big models.

Returns string with model load state or throws error if invalid model ID is passed.

Code Examples

Script Example Missing

Function engineStreamingGetModelLoadState needs a script example. Help out by writing one.

Contribution guidelines

See Also

Engine Functions