GetSquadMembers
Returns array that includes sources of squad members.
--Usage
exports["gfx-squad-remake"]:GetSquadMembers(source)
-- Output
-- [3,6,7,11,39]
GetSquadData
Returns the data of the members squad.
--Usage
exports["gfx-squad-remake"]:GetSquadData(source)
-- Output
--[[ {} or
{
id = 123456,
name = "Test Squad",
owner = 4,
image = "https://j.gifs.com/5y86p8.gif",
privacy = "public",
memberLimit = 12,
members = {
{
id = 4,
name = "Test",
image = "https://j.gifs.com/5y86p8.gif",
distance = 0,
coords = {
x = 0,
y = 0,
}
}
},
chat = {
{
id = 1,
name = "Test",
image = "https://j.gifs.com/5y86p8.gif",
message = "Hello",
time = "12:00"
}
}
}
}
]]
HasMemberGotASquad
Returns boolean which controls that iff the player has a squad
--Usage
exports["gfx-squad-remake"]:HasMemberGotASquad(source)
-- Output
true or false
GetSquadId
Returns the id of players current squad
--Usage
exports["gfx-squad-remake"]:GetSquadId(source)
-- Output
123456