Class cityrp_LawRow

Law Row Based on gmod(DPanel)

Class Overview

Hooks

cityrp_LawRow.OnLawRemoved(id) Panel hook function called when a law is removed.

Methods

cityrp_LawRow:SetIsPresident(argument) Called to set if this law row belongs to a president.
cityrp_LawRow:GetIsPresident()
cityrp_LawRow:SetIsLawNumbering(argument) Called to set if this law row belongs to a player with law numbering enabled.
cityrp_LawRow:GetIsLawNumbering()
cityrp_LawRow:Init() Called when the panel is created.
cityrp_LawRow:SetLaw(id, law) Called to set a law.

Hooks

cityrp_LawRow.OnLawRemoved(id)
Panel hook function called when a law is removed.

Parameters:

  • id int Law ID which was removed.

Methods

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:

  • id
  • law