> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add ped to selling blacklist

> Prevent a specific ped from being sold drugs to, for example shop keepers or dealers.

Adds a ped to the NPC selling blacklist, so players won't be able to sell to that ped (example: blackjack dealers, shop keepers, etc.).

<Note>
  If you prefer an easier way, you can blacklist entire ped models in `drugs_creator/integrations/cl_integrations.lua`.
</Note>

```lua Export theme={null}
exports["drugs_creator"]:addPedToNPCSellingBlacklist(ped)
```

### Parameters

| Name  | Data Type     | Description             |
| ----- | ------------- | ----------------------- |
| `ped` | ped (integer) | The target ped's handle |

## Example

```lua theme={null}
RegisterNetEvent('drugs_creator:framework:ready', function()
    local closestPed = ESX.Game.GetClosestPed()

    exports["drugs_creator"]:addPedToNPCSellingBlacklist(closestPed)
end)
```


## Related topics

- [NPC Selling](/drugs-creator/client/npc-selling/index.md)
- [Remove ped from selling blacklist](/drugs-creator/client/npc-selling/remove-ped-from-selling-blacklist.md)
- [Sellings](/drugs-creator/server/sellings/index.md)
- [Manually sell to a NPC](/drugs-creator/client/npc-selling/manually-sell-to-a-npc.md)
- [NPC accepted drug](/drugs-creator/client/npc-selling/npc-accepted-drug.md)
