fs_trapphone

Integration with fs_trapphone for our Turf Zones Loylity System.

1

Find Folder

Go to FS_TRAPPHONE/server/unlocked.lua

2

Find Event

Find event fs_trapphone:onDrugSell

3

Replace This Event with:

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)

Last updated