# 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 %}
