📥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")
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
Last updated