# nc-drugselling

{% stepper %}
{% step %}

### Find Server-Side Folder

Go to `nc-drugselling/server/main.lua`
{% endstep %}

{% step %}

### Add Code inside Drug Dealing Event

Find event called:

```lua
nc-drugselling:server:makeDeal
```

{% endstep %}

{% step %}

### Add Our Code Snippet

Please make sure to paste code in correct place.

<figure><img src="https://36113860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1vEl4u37HzsUUsBP0oWM%2Fuploads%2FiwEBLA8YH68sfoIGgYZ9%2Fimage.png?alt=media&#x26;token=80283869-6973-42f2-ae50-5e5800b372c6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Copy Snippet:

```lua
local turfId = exports['op-crime']:getPlayerTurfZone(src)
if turfId then 
    TriggerEvent('op-crime:drugSold', src, turfId, dealData.price)
end
```

{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.otherplanet.dev/scripts/op-gangs/integrations/nc-drugselling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
