📥Exports

Configuration guide of Wallet System V2 System.

Client Exports


chevron-rightisInWallethashtag
exports["stg-walletv2"]:isInWallet()

Returns whether the wallet is being used or not as true or false.

chevron-rightopenWallethashtag
exports["stg-walletv2"]:openWallet(color)

Open the wallet. You can set the color of the wallet using the color parameter: “black,” “purple,” or “brown.”


Examples:

  • exports["stg-walletv2"]:openWallet("black")

  • exports["stg-walletv2"]:openWallet("purple")

  • exports["stg-walletv2"]:openWallet("brown")

chevron-rightcloseWallethashtag
exports["stg-walletv2"]:closeWallet()

Closes the wallet.

chevron-rightgiveLicenseClienthashtag
exports['stg-walletv2']:giveLicenseClient(playerID, licenseType)

Grants the license specified by the client to the player


Examples:

  • exports['stg-walletv2']:giveLicenseClient(1, 'drive_b')

  • exports['stg-walletv2']:giveLicenseClient(1, 'fishing')

  • exports['stg-walletv2']:giveLicenseClient(1, 'hunting')

chevron-rightremoveLicenseClienthashtag
exports['stg-walletv2']:removeLicenseClient(playerID, licenseType)

Removes the license assigned to the player by the client


Examples:

  • exports['stg-walletv2']:removeLicenseClient(1, 'drive_b')

  • exports['stg-walletv2']:removeLicenseClient(1, 'fishing')

  • exports['stg-walletv2']:removeLicenseClient(1, 'hunting')

Server Exports


chevron-rightgiveLicensehashtag

Grants the license specified by the server to the player


Examples:

  • exports['stg-walletv2']:giveLicense(1, 'drive_b')

  • exports['stg-walletv2']:giveLicense(1, 'fishing')

  • exports['stg-walletv2']:giveLicense(1, 'hunting')

chevron-rightremoveLicensehashtag

Removes the license assigned to the player by the server


Examples:

  • exports['stg-walletv2']:removeLicense(1, 'drive_b')

  • exports['stg-walletv2']:removeLicense(1, 'fishing')

  • exports['stg-walletv2']:removeLicense(1, 'hunting')

Last updated