function updateCash() local whitelistJobName = nil if (customConfigPosIndex and customConfigPosIndex > 0 and customConfigPosIndex <= #Config.Positions and Config.Positions[customConfigPosIndex]) then whitelistJobName = Config.Positions[customConfigPosIndex].whitelistJobName end ESX.TriggerServerCallback("mbl:getMoney", function(money) SendNUIMessage({ type = 'update', what = 'cash', cash = ESX ~= nil and money or 0, whitelistJobName = whitelistJobName }) end) end
arkadaşlar Client core lua içerisindeki bu kısmı şununla değiştirin
function updateCash() local whitelistJobName = nil if (customConfigPosIndex and customConfigPosIndex > 0 and customConfigPosIndex <= #Config.Positions and Config.Positions[customConfigPosIndex]) then whitelistJobName = Config.Positions[customConfigPosIndex].whitelistJobName end SendNUIMessage({ type = 'update', what = 'cash', cash = ESX ~= nil and ESX.GetPlayerData().money or 0, whitelistJobName = whitelistJobName }) end