> For the complete documentation index, see [llms.txt](https://akulla-pro.gitbook.io/ashop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://akulla-pro.gitbook.io/ashop/for-devs/giveaway-functions.md).

# Giveaway functions

## ashop.StartGiveaway(itemID: Integer, restrictGroup: Integer, playerCountLoop: Integer, secExec: Integer)

secExec: How much time to pick a player. By default, between 15 and 20. Can be nil

playerCountLoop: How much players avatars before stopping on the winner ? Between 100 and 250 by default. Can be nil

restrictGroup: Is the giveaway restricted to a group ? These groups are the group ranks settings, you can display them using: PrintTable(ashop.groupranks), the input is a key of the table. Can be nil

itemID: ID of the item.
