FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: STREAMINGAPI set: clientGame: gta5editImprove

PREFETCH_SRL

0x3D245789CE12982C
0x37BE2FBB
// PrefetchSrl
void PREFETCH_SRL(char* srl);
Parameters:
  • srl:

    A SRL name.

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 SetFocusArea 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.

Examples:

  • Lua
PrefetchSrl('GTAO_INTRO_MALE')
while not IsSrlLoaded() do
	Citizen.Wait(100)
end
BeginSrl()
Privacy
•
Cookie Policy
•
Cookie Settings
INIT_CREATOR_BUDGET()
IS_ENTITY_FOCUS(Entity entity)
IS_IPL_ACTIVE(char* iplName)
_IS_MODEL_A_PED(Hash model)
IS_MODEL_A_VEHICLE(Hash model)
IS_MODEL_IN_CDIMAGE(Hash model)
IS_MODEL_VALID(Hash model)
IS_NETWORK_LOADING_SCENE()
IS_NEW_LOAD_SCENE_ACTIVE()
IS_NEW_LOAD_SCENE_LOADED()
IS_PLAYER_SWITCH_IN_PROGRESS()
IS_SRL_LOADED()
IS_STREAMVOL_ACTIVE()
IS_SWITCH_READY_FOR_DESCENT()
IS_SWITCH_SKIPPING_DESCENT()
LOAD_ALL_OBJECTS_NOW()
_LOAD_GLOBAL_WATER_TYPE(int waterType)
LOAD_SCENE(float x, float y, float z)
NETWORK_STOP_LOAD_SCENE()
NETWORK_UPDATE_LOAD_SCENE()
NEW_LOAD_SCENE_START(float posX, float posY, float posZ, float offsetX, float offsetY, float offsetZ, float radius, int p7)
NEW_LOAD_SCENE_START_SPHERE(float x, float y, float z, float radius, Any p4)
NEW_LOAD_SCENE_STOP()
OVERRIDE_LODSCALE_THIS_FRAME(float scaling)
PREFETCH_SRL(char* srl)
REMOVE_ANIM_DICT(char* animDict)
REMOVE_ANIM_SET(char* animSet)
REMOVE_CLIP_SET(char* clipSet)
REMOVE_IPL(char* iplName)
REMOVE_MODEL_FROM_CREATOR_BUDGET(Hash modelHash)
REMOVE_NAMED_PTFX_ASSET(char* fxName)
REMOVE_PTFX_ASSET()
REQUEST_ADDITIONAL_COLLISION_AT_COORD(float x, float y, float z)
REQUEST_ANIM_DICT(char* animDict)
REQUEST_ANIM_SET(char* animSet)