Skip to main content

PlayerProductManager

This item only works when running on the server. Server

Handles product prompting state on the server

Functions

new

PlayerProductManager.new(
playerPlayer,
serviceBagServiceBag
) → PlayerProductManager

Managers players products and purchase state. Should be retrieved via binder.

GetPlayer

PlayerProductManager:GetPlayer() → Player

Gets the current player

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Managers players products and purchase state. Should be retrieved via binder.",
            "params": [
                {
                    "name": "player",
                    "desc": "",
                    "lua_type": "Player"
                },
                {
                    "name": "serviceBag",
                    "desc": "",
                    "lua_type": "ServiceBag"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "PlayerProductManager"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 30,
                "path": "src/gameproductservice/src/Server/Manager/PlayerProductManager.lua"
            }
        },
        {
            "name": "GetPlayer",
            "desc": "Gets the current player",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Player"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 67,
                "path": "src/gameproductservice/src/Server/Manager/PlayerProductManager.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PlayerProductManager",
    "desc": "Handles product prompting state on the server",
    "realm": [
        "Server"
    ],
    "source": {
        "line": 7,
        "path": "src/gameproductservice/src/Server/Manager/PlayerProductManager.lua"
    }
}