visualz_selldrugs
Integration of our Turf Zone system with visualz_selldrugs script!
2
Add Code Snippet
You have to replace function SellDrugEvent
with our:
function SellDrugEvent(source, drug, price, amount, zone)
--local xPlayer = ESX.GetPlayerFromId(source)
--exports["visualz_zones"]:AddPoints(xPlayer, zone, price * amount, drug)
local turfId = exports['op-crime']:getPlayerTurfZone(source)
if turfId then
TriggerEvent('op-crime:drugSold', source, turfId, price * amount)
end
end
Last updated