# Disable default selling method for NPCs

Trigger to disable the prompt above NPCs "Press E to sell drugs"\
\
If you disable the prompt, you have to manually trigger the `drugs_creator:sellToNPC` event to sell to NPCs

## Event

```lua
TriggerEvent("drugs_creator:disableDefaultSellingMethodNPC")
```

## Example

```lua
-- Disables the prompt
RegisterNetEvent("drugs_creator:framework:ready", function() 
    TriggerEvent("drugs_creator:disableDefaultSellingMethodNPC")
end)

-- Manually sell to an NPC (example for targeting scripts)
Citizen.CreateThread(function() 
    local closestPed = ESX.Game.GetClosestPed()

    TriggerEvent("drugs_creator:sellToNPC", closestPed)
end)
```


---

# 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://documentation.jaksam-scripts.com/drugs-creator/client/npc-selling/disable-default-selling-method-for-npcs.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.
