finished locales EN
This commit is contained in:
1 parent
37f86bf50d
commit
683eaff7de
46 files changed
+965
-1049
No files matched your search
@@ -0,0 +1,27 @@
|
||||
|
||||
local function spawn()
|
||||
local location, menus = 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)
|
||||
ps.entityTarget(ped, {
|
||||
{
|
||||
label = ps.lang('merchant.targetOpen'),
|
||||
action = function()
|
||||
local options = {}
|
||||
for k, v in pairs (menus) do
|
||||
options[#options+1] = {
|
||||
title = ps.getLabel(k),
|
||||
description = '$'..v,
|
||||
action = function()
|
||||
ps.triggerServerEvent('md-drugs:server:purchaseGoods', k)
|
||||
end
|
||||
}
|
||||
end
|
||||
ps.menu('Travelling Merchant', 'Travelling Merchant', options)
|
||||
end
|
||||
}
|
||||
})
|
||||
end
|
||||
spawn()
|
||||
Reference in new issue
Block a user