> 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/integrations/lation_selling.md).

# lation\_selling

{% stepper %}
{% step %}

### Find Directory

Find folder `lation_selling/server/functions.lua`
{% endstep %}

{% step %}

### Find Function

Find function named `DrugSold`
{% endstep %}

{% step %}

### Replace function

Replace existing function `DrugSold` with this:

```lua
DrugSold = function(source, zoneId, item, quantity, value)
    local turfId = exports['op-crime']:getPlayerTurfZone(source)
    if turfId then 
        TriggerEvent('op-crime:drugSold', source, turfId, value)
    end
end

```

{% endstep %}
{% endstepper %}
