server
local hasGang = exports['gw-gang']:HasGang(source)
if hasGang then
print("Le joueur " .. source .. has a gang")
end
GetPlayerGang(source)
GetPlayerGang(source)local gang, gangId = exports['gw-gang']:GetPlayerGang(source)
if gang then
print("Gang : " .. gang.name .. " (ID: " .. gangId .. ")")
endGetPlayerGangId(source) → string|nil
GetPlayerGangId(source) → string|nilGetPlayerGangName(source) → string|nil
GetPlayerGangName(source) → string|nilGetPlayerHierarchy(source)
GetPlayerHierarchy(source)Type
Description
HasPermission(source, permission)
HasPermission(source, permission)Nom
Type
Description
GetGangById(gangId) → table|nil
GetGangById(gangId) → table|nilGetAllGangs() → table
GetAllGangs() → tableGetGangMembers(gangId) → table|nil
GetGangMembers(gangId) → table|nilGetGangInfluence(gangId) → number
GetGangInfluence(gangId) → numberGetGangTerritoryCount(gangId) → number
GetGangTerritoryCount(gangId) → numberGetGangTerritoryPoints(gangId) → number
GetGangTerritoryPoints(gangId) → numberAddTerritoryInfluence(source, territoryName, points) → boolean
AddTerritoryInfluence(source, territoryName, points) → booleanAddTerritoryInfluenceFromCoords(coords, gangIdOrSource, points)
AddTerritoryInfluenceFromCoords(coords, gangIdOrSource, points)Nom
Type
Description
GetGangInfluenceInTerritory(territoryName, gangId) → number
GetGangInfluenceInTerritory(territoryName, gangId) → numberGetTerritoryInfluences(territoryName) → table
GetTerritoryInfluences(territoryName) → tableGetCapturedTerritories() → table
GetCapturedTerritories() → tableGetAllTerritoryInfluences() → table
GetAllTerritoryInfluences() → tableGestion des gangs
CreateGang(source, name, color) → boolean, string|nil
CreateGang(source, name, color) → boolean, string|nilInvitePlayer(source, targetId) → boolean
InvitePlayer(source, targetId) → booleanKickMember(source, targetIdentifier) → boolean
KickMember(source, targetIdentifier) → booleanSyncPlayerGangData(source)
SyncPlayerGangData(source)AreInSameGang(source1, source2) → boolean
AreInSameGang(source1, source2) → booleanDonnées de stockage & déblocables
GetGangStorageData(gangId) → table|nil
GetGangStorageData(gangId) → table|nilIsGangActionUnlocked(gangId, actionId) → boolean
IsGangActionUnlocked(gangId, actionId) → booleanIsGangMissionUnlocked(gangId, missionId) → boolean
IsGangMissionUnlocked(gangId, missionId) → booleanNotifyGangMembers(gangId, event, ...)
NotifyGangMembers(gangId, event, ...)Utilitaires membres
GetGangMember(gangId, identifier) → table|nil, number|nil
GetGangMember(gangId, identifier) → table|nil, number|nilCanManageMember(gangId, managerIdentifier, targetIdentifier) → boolean
CanManageMember(gangId, managerIdentifier, targetIdentifier) → booleanSauvegarde & synchronisation
Last updated