-
Notifications
You must be signed in to change notification settings - Fork 0
API
Creates a new Queue object.
If IsGamePlace is checked, this method will try to find any teleport data associated with this server's private server id.
Returns a Queue by its id provided in the params at creation. Returns nil if queue is not found.
Returns an array of all active Queues
Decides how many players the Queue needs to start counting down
Decides how many players the Queue can hold
Decides where the players in the Queue will be teleported when initiated
Decides how long the countdown for the Queue is
Decides the data that will be sent to the target place when Queue is initiated
Decides the queue's ID, can be used with :GetQueueById()
Fires when a Player is added to the Queue.
Fires when a Player is removed from the Queue.
Fires when a Queue is initated (finished counting down / method :Initiated() called)
Fires when a Queue's countdown has counted down one whole number
Adds a player to the Queue. Returns true if added, returns false if failed.
Removes a player from the Queue. Returns true if removed, returns false if failed.
Initiates the Queue. If place id is provided, it will teleport all players to that place.
Destroys the Queue. The queue will not be usable after this.
- A table containing every player inside of the queue.
- The provided value from params on creation.
- If provided, players will teleport to this place on initation.
- If no value is provided, players will not be teleported on initiation.
- The provided value from params on creation.
- If provided, the minimum amount of players needed for the countdown to start will be this value.
- If no value is provided, this value defaults to 1
- The provided value from params on creation.
- If provided, the maximum amount of players that can be in the
Queuewill be this value. - If no value is provided, this value defaults to 50
- The provided value from params on creation.
- If provided, the teleport data of the
Queuewill be this value. - If not provided, this value defaults to
nil - Insert PlayerAmt element into tpData
When a
Queueis initiated, uQueueService will insert another element into the tpData table if provided, named PlayerAmt. This is just how many players were in the queue when the queue was initiated. - DefaultData table At the top of the uQueueService module, you will find a table named DefaultData This can be edited so that when testing your game place, you will be able to experiment with custom teleport data
- The provided value from params on creation.
- If provided, the countdown value of the
Queuewill be this value. - If not provided, this value defaults to 5.
- Immutable id for all queues.
Brought to you by signupredirectlol | Original module by RequiredModule