Skip to main content

getFraction

exports["RiP-Fraktion"]:getFraction() 

This function returns the current players fraction

Returned Table

NameTypeExplenation
namestringFraction name
labelstringFraction label
grade_namestringGrade name
grade_labelstringGrade label

Example

local fraction = exports["RiP-Fraktion"]:getFraction() 
if fraction then
print("Player is in fraction "..fraction.label)
else
print("Player has no fraction")
end