Law Row
Based on gmod(DPanel)
-
cityrp_LawRow.OnLawRemoved(id)
-
Panel hook function called when a law is removed.
Parameters:
- id
int
Law ID which was removed.
-
cityrp_LawRow:SetIsPresident(argument)
-
Called to set if this law row belongs to a president.
Parameters:
- argument
bool
If the law belongs.
-
cityrp_LawRow:GetIsPresident()
-
Returns:
bool
If the law row belongs to a president.
-
cityrp_LawRow:SetIsLawNumbering(argument)
-
Called to set if this law row belongs to a player with law numbering enabled.
Parameters:
- argument
bool
If law numbering is enabled.
-
cityrp_LawRow:GetIsLawNumbering()
-
Returns:
bool
If law numbering is enabled
-
cityrp_LawRow:Init()
-
Called when the panel is created.
-
cityrp_LawRow:SetLaw(id, law)
-
Called to set a law.
Parameters: