ps.createShop(source, shopData)
Last updated
Last updated
Description
Creates and opens a temporary shop for the player.
Parameters
source
(number): Source ID of the player.
shopData
(table): Shop configuration table with:
name
(string, optional): Internal name for the shop.
label
(string, optional): Display label (default: name
)
items
(table): List of items to sell.
slots
(number, optional): Number of item slots (default: #items
)
Return Value
None
Example Use Case
ps.createShop(source, {
name = "tool_shop",
label = "Hardware Store",
items = {
{ name = "screwdriver", price = 10 },
{ name = "hammer", price = 15 }
}
})