From the reference libraryFiveM

performMapLoadFunction

fivem-docs/docs/scripting-manual/nui-development/loading-screens/performMapLoadFunction.md

performMapLoadFunction


title: performMapLoadFunction toc_hide: true

Triggered when a map load function was called, either by itself or as a result of onDataFileEntry.

Event Data

This is the data provided to the message event:

interface EventData {
    eventName: 'performMapLoadFunction',
    idx: number,
}
  • eventName: The event name.
  • idx: The map index.

title: performMapLoadFunction toc_hide: true

Triggered when a map load function was called, either by itself or as a result of onDataFileEntry.

Event Data

This is the data provided to the message event:

interface EventData {
    eventName: 'performMapLoadFunction',
    idx: number,
}
  • eventName: The event name.
  • idx: The map index.
Back to documentation