> For the complete documentation index, see [llms.txt](https://docs.otherplanet.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otherplanet.dev/scripts/op-gangs/custom-drug-script.md).

# Custom Drug Script

You need to call This server-side event when player successfully sold drug.

```lua
TriggerEvent("op-crime:drugSold", playerId, turfId, finalPrice)
```

{% hint style="warning" %}
This Event Can Be called only from Server-Side to prevent cheaters!
{% endhint %}

## How To Get Player Turf Id?

## getPlayerTurfZone

***

Return index of player turf zone or nil. Useful for drugs selling script integrations.

```lua
exports['op-crime']:getPlayerTurfZone(source)
```
