Skip to main content

getFractions

local returnedTable = exports["RiP-Fraktion"]:getFractions() 

This function returns all fractions

Returned Table

NameTypeExplenation
namestringFraction name
ownerstringOwner identifier
labelstringFraction label
coordsstring/objectAll coords
walletintegerWallet balance
storagetableFraction storage
daymsgstringMessage of the day
menuobjectX-Menu permissions
walletintegerWallet balance
upgradesobjectUpgrade level

Example

local fractions = exports["RiP-Fraktion"]:getFractions() 
for r,p in pairs(fractions) do
print(p.name)
end