fs_trapphone
Integration with fs_trapphone for our Turf Zones Loylity System.
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