StreamingClient

prefetchSrl

PREFETCH_SRL0x3D245789CE12982C

The GTA V native PREFETCH_SRL of the STREAMING namespace, as LS:MP client scripts call it: the global function prefetchSrl, in JavaScript and in Lua.

SignatureJavaScript
prefetchSrl(srl: string): void
SignatureLua
prefetchSrl(srl: string)

Usage

JavaScript
prefetchSrl(srl);
Lua
prefetchSrl(srl)

Parameters

ParameterTypeJavaScriptLua
srlstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This native is used to attribute the SRL that beginSrl is going to load. This is usually used for 'in-game' cinematics (not cutscenes but camera stuff) instead of setFocusPosAndVel because it loads a specific area of the map which is pretty useful when the camera moves from distant areas.
For instance, GTA:O opening cutscene.
https://pastebin.com/2EeKVeLA : a list of SRL found in srllist.meta
https://pastebin.com/zd9XYUWY here is the content of a SRL file opened with codewalker.

Reference

Namespace
Streaming STREAMING
In the game
void PREFETCH_SRL(const char* srl)
Hash
0x3D245789CE12982C

Open in the interactive natives reference