headsetEquip eConnect

This is extremely useful in certain cases such as having your own custom function to verify if the player has the permission to equip the headset.

The event expects 3 arguments:

type : String

genre : Set this to nil

args : Table

Type : String

You must provide "EquipEConnect"

genre : nil

Set this to nil

args : Table

This must be a table containing a key named "Player", and it needs to be the Player instance

Example Code

Script
local event = game:GetService("ReplicatedStorage"):WaitForChild("ActivExternaleAPI")
local services = {
	["Players"] = game:GetService("Players")
}

if not event then 
	warn("Warn :: Event was not found in ReplicatedStorage!!")
end

services.Players.PlayerAdded:Connect(function(Player)
	if Player then 
		event:Fire("EquipEConnect", nil, {["Player"] = Player})
	end
end)

Last updated