list.Set

From GMod Wiki

Jump to: navigation, search
Function
Syntax list.Set( String name, Var key, Var value )
Where is this used?
Description:
Sets a specific position in the named list to a value.
Returns: nil
Part of Library: list
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=List.Set]List.Set [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionSets 3 items to the trail_materials list.
Used onNewerShared.png
Code
 
list.Set( "trail_materials", "#Plasma", 	"trails/plasma" )
list.Set( "trail_materials", "#Tube", 		"trails/tube" )
list.Set( "trail_materials", "#Electric", 	"trails/electric" )
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox