Fetch Component
Component Available | |
Server | Yes |
Client | No |
This component is how you retrieve player data created from the Player Component.
Required Attributes
Server
Source: function
PlayerData: function
All: function
Client
None
Methods
Server
Source
- Parameters:
source: int
- Return:
player: table
- Description: Returns the data stored under the provided source in the Players table, if none exist returns nil.
Database
- Parameters:
key: string, value: any
- Return:
player: table
- Description: Will search the users collection trying to find an entry that matches the query, if it finds a match it will retrieve that players data from the database & the website.
PlayerData
- Parameters:
key: string, value: any
- Return:
player: table
- Description: Search Players list for a player with the matching data, if none exist returns nil.
All
- Parameters:
None
- Return:
players: table
- Description: Returns the complete Players list.
Client
This component has no client methods.
Events
Server
No server events are fired from this component.
Client
No client events are fired from this component.