getFraction
exports["RiP-Fraktion"]:getFraction()
This function returns the current players fraction
Returned Table
Name | Type | Explenation |
---|---|---|
name | string | Fraction name |
label | string | Fraction label |
grade_name | string | Grade name |
grade_label | string | Grade 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