engineStreamingSetModelCacheLimits | Multi Theft Auto: Wiki Skip to content

engineStreamingSetModelCacheLimits

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

Syntax

bool engineStreamingSetModelCacheLimits ( int numVehicles, int numPeds )
Required Arguments
  • numVehicles: MISSING_PARAM_DESC
  • numPeds: MISSING_PARAM_DESC

Returns

  • bool: value

Returns true if the event occurred, otherwise it throws an error message and returns false .

Code Examples

shared

This example turns off cache limiting.

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

See Also

Engine Functions
Engine Elements