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

# fs\_trapphone

{% stepper %}
{% step %}

### Find Folder

Go to `FS_TRAPPHONE/server/unlocked.lua`
{% endstep %}

{% step %}

### Find Event

Find event `fs_trapphone:onDrugSell`
{% endstep %}

{% step %}

### Replace This Event with:

```lua
AddEventHandler('fs_trapphone:onDrugSell',function (serverId,itemname,quantity)
  local foundDrugCfg = nil

  for k, v in pairs(Config.Drugs) do 
    if v.name == itemname then
      foundDrugCfg = v
      break;
    end
  end

  if foundDrugCfg then 
    local turfId = exports['op-crime']:getPlayerTurfZone(serverId)
    if turfId then 
        local price = foundDrugCfg.price.min * quantity
        TriggerEvent('op-crime:drugSold', serverId, turfId, price)
    end
  end
end)
```

{% endstep %}
{% endstepper %}
