# visualz\_selldrugs

{% stepper %}
{% step %}

### Find Server-Side folder

Go to `visualz_selldrugs/server/functions.lua`
{% endstep %}

{% step %}

### Add Code Snippet

You have to replace function `SellDrugEvent` with our:

```lua
function SellDrugEvent(source, drug, price, amount, zone)
  --local xPlayer = ESX.GetPlayerFromId(source)
  --exports["visualz_zones"]:AddPoints(xPlayer, zone, price * amount, drug)
  local turfId = exports['op-crime']:getPlayerTurfZone(source)
  if turfId then 
      TriggerEvent('op-crime:drugSold', source, turfId, price * amount)
  end
end
```

{% endstep %}

{% step %}

### File After Editing

File should look like this:\
![](https://36113860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1vEl4u37HzsUUsBP0oWM%2Fuploads%2Fe7iPmFV8qTYt5A3kEi11%2Fimage.png?alt=media\&token=6764086d-9046-43d0-b3f9-45173e781a5b)
{% endstep %}
{% endstepper %}
