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.

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": 32,
                "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"
    }
}