Datafile::loadUgcFile: Difference between revisions
(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_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
- mp.game.datafile.arrayValueAddBoolean
- mp.game.datafile.arrayValueAddFloat
- mp.game.datafile.arrayValueAddInteger
- mp.game.datafile.arrayValueAddObject
- mp.game.datafile.arrayValueAddString
- mp.game.datafile.arrayValueAddVector3
- mp.game.datafile.arrayValueGetBoolean
- mp.game.datafile.arrayValueGetFloat
- mp.game.datafile.arrayValueGetInteger
- mp.game.datafile.arrayValueGetObject
- mp.game.datafile.arrayValueGetSize
- mp.game.datafile.arrayValueGetString
- mp.game.datafile.arrayValueGetType
- mp.game.datafile.arrayValueGetVector3
- mp.game.datafile.loadUgcFile
- mp.game.datafile.objectValueAddArray
- mp.game.datafile.objectValueAddBoolean
- mp.game.datafile.objectValueAddFloat
- mp.game.datafile.objectValueAddInteger
- mp.game.datafile.objectValueAddObject
- mp.game.datafile.objectValueAddVector3
- mp.game.datafile.objectValueAddString
- mp.game.datafile.objectValueGetArray
- mp.game.datafile.objectValueGetBoolean
- mp.game.datafile.objectValueGetFloat
- mp.game.datafile.objectValueGetInteger
- mp.game.datafile.objectValueGetObject
- mp.game.datafile.objectValueGetString
- mp.game.datafile.objectValueGetType
- mp.game.datafile.objectValueGetVector3