spawnmenu.PopulateFromTextFiles
Description
This is used internally - although you're able to use it you probably shouldn't.
Loads spawnlists from text files. You probably are looking for spawnmenu.AddPropCategory.
Arguments
1 function callback
The function to call.
Function callback arguments are:
- string strFilename - The file name for the spawnlist.
- string strName - The "nice" title for the spawnlist.
- table tabContents - The list of contents for this spawnlist.
- string icon - Path to an
.png
icon of the spawnlist, should be 16x16 image. - number id - Unique ID of the spawnlist
- number parentid - UniqueID of the parents spawnlist ID
- string needsapp - If not empty, the internal folder name of an mountable game that is required for this spawnlist to show up.