From the reference libraryFiveM

onDataFileEntry

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

onDataFileEntry


title: onDataFileEntry toc_hide: true

Triggered when a data file entry occurred, as either a result of startDataFileEntries or initFunctionInvoking.

Event Data

This is the data provided to the message event:

interface EventData {
    eventName: 'onDataFileEntry',
    name: string,
    type: number,
    isNew: boolean,
}
  • eventName: The event name.
  • name: The name of the data file entry.
  • type: The type of the data file entry.
  • isNew: Whether this data file entry is new.

title: onDataFileEntry toc_hide: true

Triggered when a data file entry occurred, as either a result of startDataFileEntries or initFunctionInvoking.

Event Data

This is the data provided to the message event:

interface EventData {
    eventName: 'onDataFileEntry',
    name: string,
    type: number,
    isNew: boolean,
}
  • eventName: The event name.
  • name: The name of the data file entry.
  • type: The type of the data file entry.
  • isNew: Whether this data file entry is new.
Back to documentation