Lunar Drug Creator

Find Directory

Go To : lunar_drugscreator/config/sv_edit.lua

Replace Function

Replace the exiting function Editable.onRetailSale with this:

function Editable.onRetailSale(player, itemName, amount, price)
    local playerId = player.source
    local gangZone = exports['kartik-gangs']:getPlayerGangZone(playerId)
    if gangZone then 
        TriggerEvent('kartik-gangs:server:onDrugSold', playerId, gangZone)
    end
end

Last updated