Datafile::loadUgcFile: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
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.<br><br>Returns whether or not the file was successfully loaded.<br><br>Example:<br>DATAFILE::_LOAD_UGC_FILE('RockstarPlaylists') // loads 'rockstarplaylists_00.ugc'
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.<br><br>Returns whether or not the file was successfully loaded.<br><br>Example:<br>DATAFILE::_LOAD_UGC_FILE('RockstarPlaylists') // loads 'rockstarplaylists_00.ugc'
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">datafile.loadUgcFile(filename);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.datafile.loadUgcFile(filename);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''filename:''' String
*'''filename:''' String
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Datafile_function_c}}
{{Datafile_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:05, 6 May 2017

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