📥Exports

Configuration guide of Wallet System V2 System.

Client Exports


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

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

openWallet
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")

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

Closes the wallet.

giveLicenseClient
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')

removeLicenseClient
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


giveLicense
exports['stg-walletv2']:giveLicense(playerID, licenseType)

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')

removeLicense
exports['stg-walletv2']:removeLicense(playerID, licenseType)

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