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)
|
2024-09-24 15:07:41 -07:00
|
|
|
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",
|
2024-10-24 12:56:34 -07:00
|
|
|
action = function()
|
2024-10-24 19:45:39 -07:00
|
|
|
makeMenu('travellingMerchant')
|
|
|
|
|
lib.showContext('travellingMerchant')
|
2024-10-24 12:56:34 -07:00
|
|
|
end}, nil)
|
2024-01-13 22:23:17 -08:00
|
|
|
end)
|