# Installation

## 1. Go to <https://creator.tebex.io/game-servers> and create / link your game server.

Your server.cfg in the end should have `sv_tebexSecret` set.

## 2. Go to <https://creator.tebex.io/packages> and create as many coin packages you want.

You need to write the package's info, then go to the bottom and select **+ Game Server Commands**.&#x20;

Select the game server you've linked in step one, then add a command.&#x20;

Then, paste this in (example is for 100 coins): `pts_givecoins {transaction} {id} 100`&#x20;

Finally, **click the gear icon** for the command on the right. **Set "Require Player to be Online"** to `"Execute the command even if the player is offline".`

## 3. Go to the config.lua of the resource, then set the following values:

\
Config.TebexStoreUrl: Homepage URL of your tebex store in case of the user not being logged in.&#x20;

Config.TebexApiKey: Go to <https://creator.tebex.io/developers/api-keys> and get your "Public Token"&#x20;

Config.ItemImageFolder: URL Directory of your inventory's item's folder (not required but makes daily spin ez)&#x20;

Config.CoinCurrency -> packages: List of all coin package IDs you added in step 2. \
This can be found by going to <https://creator.tebex.io/packages>, then click the package to edit it.\
The package ID will be whatever number is at the end of the URL. (Usually 7+ digits)

Config.StoreManagers: List of identifiers that can manage the store and manage coins.

## 4. Go to the configsv.lua of the resource, then set the following values:

ConfigSV.Webhooks: List of different webhooks set for purchases and coin modification.

## 5. Restart the server with `pickle_store` ensured in the server.cfg, and enjoy!

If you have any questions, be sure to join <https://discord.gg/picklemods> for support.
