getPlayerAffiliation

Get a players affiliation to a given territory.

-- ARGUMENTS
-- source:      number
-- id:          number

-- RETURNS
-- name:        string
-- rank:        number
-- type:        string ["job" | "group"]

RegisterCommand("addTerritoryReputation",function(source, args)   
  local id = exports.ti_territories:getInsideTerritory(source)
  local affiliation = exports.ti_territories:getPlayerAffiliation(source, id)
end, false)

Last updated