engineStreamingSetModelCacheLimits | Multi Theft Auto: Wiki Skip to content

engineStreamingSetModelCacheLimits

Client-side
Server-side
Shared

Added in 1.6.0 r21947

This function sets custom cache limits for vehicle and pedestrian models based on provided values. The arguments that receive zero mean complete deactivation.

OOP Syntax Help! I don't understand this!

Syntax

nil engineStreamingSetModelCacheLimits ( [ ​int numVehicles = 0, ​int numPeds = 0 ] )
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • numVehicles (default: 0): Specifies the maximum number of vehicle models that can be cached.
  • numPeds (default: 0): Specifies the maximum number of pedestrian models that can be cached.

Returns

  • nil: nothing

This function returns nothing.

Code Examples

client

This example turns off cache limiting.

addEventHandler("onClientResourceStart", resourceRoot, function()
engineStreamingSetModelCacheLimits(0, 0)
end)

See Also

Engine Functions