Skip to content

Card.Code ​

Source Code | Usage Examples | Card Functions

Returns a card's current passcode/ID.

Signature ​

Card.Code(Card c) → int

lua
c:Code()

Parameters ​

  • Card c ​

    The card to get the passcode of.

Returns ​

  • int ​

    The card's current passcode.

Overload ​

Card.Code(Card c, int code) → nil

lua
c:Code(code)

Changes a card's passcode/ID.

Parameters ​

  • Card c ​

    The card to change the passcode of.

  • int code ​

    The new code.