updated img population to auto do it

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-05-18 13:37:53 -07:00
1 parent a015846e78
commit e5cf612a29
1 file changed
+2 -2
+2 -2
View File
@@ -41,7 +41,7 @@ RegisterNetEvent('md-drugs:client:opendealermenu', function()
for k, v in pairs (QBConfig.ProductsStupidNameRewrite) do
if QBCore.Functions.GetPlayerData().metadata["dealerrep"] >= v.minrep then
dealermenu[#dealermenu + 1] = {
icon = "nui://"..Config.imagelink..QBCore.Shared.Items[v.name].image,
icon = GetImage(v.name),
title = QBCore.Shared.Items[v.name].label,
description = v.price,
event = "md-drugs:client:travellingmerchantox",
@@ -61,7 +61,7 @@ RegisterNetEvent('md-drugs:client:opendealermenu', function()
for k, v in pairs (QBConfig.Products) do
if QBCore.Functions.GetPlayerData().metadata["dealerrep"] >= v.minrep then
dealermenu[#dealermenu + 1] = {
icon = "nui://"..Config.imagelink..QBCore.Shared.Items[v.name].image,
icon = GetImage(v.name),
title = QBCore.Shared.Items[v.name].label,
description = v.price,
event = "md-drugs:client:travellingmerchantox",