> For the complete documentation index, see [llms.txt](https://titans-productions.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://titans-productions.gitbook.io/documentation/redm/scripts/stores/development-api/server.md).

# Server

### Events

1. Open a store by its name (must be a valid name from config). If the store you want to access is custom, the `storeId` must be having a name which is located on `Config.CustomStores`.

```lua
--- @param source - requires an integer (the online player id)
--- @param storeName - requires a string (The name from the configuration file (Such as 'GENERAL_STORE_VALENTINE' )
--- @param cb - requires a boolean value (Set to true if the store is custom | Set to false if the store is not Custom)
TriggerClientEvent("tp_stores:openStoreByName", source, storeName, cb) -- server to client
```
