Files
md-drugs/client/travellingmerchant.lua
T

15 lines
701 B
Lua
Raw Normal View History

2024-01-13 22:23:17 -08:00
local QBCore = exports['qb-core']:GetCoreObject()
CreateThread(function()
local current = "g_m_y_famdnf_01"
2024-05-02 18:34:14 -07:00
lib.requestModel(current, Config.RequestModelTime)
local num = lib.callback.await('md-drugs:server:GetMerchant', false)
local CurrentLocation = Config.Travellingmerchant[num]
2024-05-02 18:34:14 -07:00
local travellingmerchant = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, CurrentLocation.w, false, false)
2024-07-11 17:39:58 -07:00
Freeze(travellingmerchant, true, CurrentLocation.w)
2024-11-04 16:46:27 -08:00
AddSingleModel(travellingmerchant, { label = Lang.targets.travel.travel, icon = "fas fa-eye",
action = function()
makeMenu('travellingMerchant')
lib.showContext('travellingMerchant')
end}, nil)
2024-01-13 22:23:17 -08:00
end)