Class PANEL.cityrp_Cards

Cards Menu Based on Panel

Class Overview

Fields

PANEL.cityrp_Cards.Cards JSON string representing the cards the player currently has.

Methods

PANEL.cityrp_Cards:QueryCards() Update the cards string from the player's inventory.
PANEL.cityrp_Cards:GetEndpoint(event) Get the current event endpoint.
PANEL.cityrp_Cards:LoadCards() Load cards into the menu.
PANEL.cityrp_Cards:UpdateCards() Update the cards on-screen.
PANEL.cityrp_Cards:Paint(w, h) Hook function called to paint the background of the panel.
PANEL.cityrp_Cards:Init() Create the interior panel and set up default data.

Fields

PANEL.cityrp_Cards.Cards
JSON string representing the cards the player currently has.

Methods

PANEL.cityrp_Cards:QueryCards()
Update the cards string from the player's inventory.

Internal:

    This function is internal. Whilst you can call it, you probably shouldn't.
PANEL.cityrp_Cards:GetEndpoint(event)
Get the current event endpoint.

Internal:

    This function is internal. Whilst you can call it, you probably shouldn't.

Parameters:

  • event string Current card event identifier.
PANEL.cityrp_Cards:LoadCards()
Load cards into the menu. Updates cards if required.

Internal:

    This function is internal. Whilst you can call it, you probably shouldn't.
PANEL.cityrp_Cards:UpdateCards()
Update the cards on-screen.

Internal:

    This function is internal. Whilst you can call it, you probably shouldn't.
PANEL.cityrp_Cards:Paint(w, h)
Hook function called to paint the background of the panel.

Parameters:

  • w int Width to paint.
  • h int Height to paint.
PANEL.cityrp_Cards:Init()
Create the interior panel and set up default data.

Internal:

    This function is internal. Whilst you can call it, you probably shouldn't.