Datafile::loadUgcFile

From RAGE Multiplayer Wiki
Revision as of 21:05, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Loads a User-Generated Content (UGC) file. These files can be found in '[GTA5]/data/ugc' and '[GTA5]/common/patch/ugc'. They seem to follow a naming convention, most likely of '[name]_[part].ugc'. See example below for usage.

Returns whether or not the file was successfully loaded.

Example:
DATAFILE::_LOAD_UGC_FILE('RockstarPlaylists') // loads 'rockstarplaylists_00.ugc'

Syntax

mp.game.datafile.loadUgcFile(filename);

Required Arguments

  • filename: String

Return value

  • Boolean

Example

// todo

See also

Template:Datafile s function c