- fix bug with comparing rep

- fix travellingmerchant
This commit is contained in:
Mustache Dom committed 2025-08-11 16:49:24 -06:00
1 parent ca50437751
commit a079efd5c8
6 files changed
+26 -20

No files matched your search

+5 -4
View File
@@ -1,19 +1,20 @@
local function spawn()
local location, menus = ps.callback('md-drugs:server:GetMerchant')
local data = ps.callback('md-drugs:server:GetMerchant')
local model = 's_m_m_trucker_01'
ps.requestModel(model)
local ped = CreatePed(4, model, location.x, location.y, location.z, location.w, false, true)
Freeze(ped, true, location.w)
local ped = CreatePed(4, model, data.loc.x, data.loc.y, data.loc.z, data.loc.w, false, true)
Freeze(ped, true, data.loc.w)
ps.entityTarget(ped, {
{
label = ps.lang('merchant.targetOpen'),
action = function()
local options = {}
for k, v in pairs (menus) do
for k, v in pairs (data.items) do
options[#options+1] = {
title = ps.getLabel(k),
description = '$'..v,
icon = ps.getImage(k),
action = function()
ps.triggerServerEvent('md-drugs:server:purchaseGoods', k)
end
+2 -2
View File
@@ -97,7 +97,7 @@ for k, v in pairs(locations.isosafrole) do
end
for k, v in pairs(locations.rawxtcloc) do
ps.boxTarget('xtc'..k, v.loc, {length = v.l, width = v.w, heading = v.rot}, {
ps.boxTarget('xtcraw'..k, v.loc, {length = v.l, width = v.w, heading = v.rot}, {
{
icon = 'fa-solid fa-flask',
label = ps.lang('xtc.targetRaw'),
@@ -157,7 +157,7 @@ for k, v in pairs(locations.xtcpress) do
end
for k, v in pairs (locations.stamp) do
ps.boxTarget('xtc'..k, v.loc, {length = v.l, width = v.w, heading = v.rot}, {
ps.boxTarget('xtcstamp'..k, v.loc, {length = v.l, width = v.w, heading = v.rot}, {
{
icon = 'fa-solid fa-flask',
label = ps.lang('xtc.targetStamp'),