list.Get
Description
Returns a copy of the list stored at identifier.
This function uses table.Copy which can be very slow for larger lists. You should avoid calling it repeatedly or in performance sensitive hooks such as GM:Think.
Where possible you should use the much faster helper functions: list.Contains, list.HasEntry, or list.GetEntry.
There is also the more dangerous option of calling list.GetForEdit to get the unprotected list if you absolutely must iterate through it in a think hook.
Arguments
Returns
Example
Get every available NPC from the client:
Page views: 21,120
Updated: This Year
Updated: This Year
Garry's Mod
Rust
Steamworks
Wiki Help