> For the complete documentation index, see [llms.txt](https://corner-scripts.gitbook.io/corner-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://corner-scripts.gitbook.io/corner-scripts-docs/assets-and-guides/corner-system-drug-selling-script/events.md).

# 🔌Events

Client Events:

* `corner:openCornerMenu` - Opens the selling menu
* `corner:deletePed` - Deletes the current dealer NPC
* `corner:respawnDealer` - Respawns a dealer NPC
* `corner:stopSelling` - Stops the selling process
* `corner:noItemsLeft` - Handles no items left situation

Server Events:

* `corner:sellDrugs` - Handles drug selling transaction

### Security Features

* **Anti-Spam Protection**: Cooldown system prevents rapid selling attempts
* **Zone Validation**: Server-side validation ensures players are in valid zones
* **Inventory Checks**: Double verification of player inventory
* **Rate Limiting**: Maximum attempts per minute protection
* **Discord Logging**: All suspicious activities are logged

###
