edit
This commit is contained in:
1 parent
65597810c7
commit
26fd63d750
3 files changed
+7
-5
No files matched your search
@@ -12,6 +12,7 @@ local function reset(targ)
|
||||
TaskWanderInArea(targ, coords.x, coords.y, coords.z, 100.0, 2, 10.0)
|
||||
Wait(10000)
|
||||
DeletePed(targ)
|
||||
targbusy = false
|
||||
sold = true
|
||||
active = false
|
||||
end
|
||||
@@ -60,6 +61,7 @@ function Cornersell()
|
||||
until #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(targ)) < 2.0
|
||||
lib.requestAnimDict("rcmme_tracey1")
|
||||
TaskStartScenarioInPlace(targ, "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", 0, false) FreezeEntityPosition(targ, true)
|
||||
print(data.ped)
|
||||
AddMultiModel(data.ped, {
|
||||
{ label = string.format(Lang.targets.CornerSell.sell, data.amount, GetLabel(data.item), data.price), icon ="fa-solid fa-money-bill",
|
||||
action = function() sellDrug(data.item, data.amount, data.price, targ) end,
|
||||
|
||||
@@ -504,6 +504,7 @@ function AddSingleModel(model, data, num)
|
||||
end
|
||||
|
||||
function AddMultiModel(model, data, num)
|
||||
print(model)
|
||||
local options = {}
|
||||
for k, v in pairs (data) do
|
||||
table.insert(options, {
|
||||
@@ -516,7 +517,8 @@ function AddMultiModel(model, data, num)
|
||||
elseif Config.Target == 'ox' then
|
||||
exports.ox_target:addLocalEntity(model, options)
|
||||
elseif Config.Target == 'interact' then
|
||||
exports.interact:AddLocalEntityInteraction({entity = model,offset = vec3(0.0, 0.0, 1.0),id = 'mddrugsmulti'..model,distance = 2.5,interactDst = 2.5, options = options})
|
||||
local loc = GetEntityCoords(model)
|
||||
exports.interact:AddLocalEntityInteraction({entity = model,offset = vec3(0.0, 0.0, 1.0),id = 'mddrugss'..model,distance = 2.5,interactDst = 2.5, options = data})
|
||||
end
|
||||
end
|
||||
|
||||
@@ -569,7 +571,7 @@ end
|
||||
function StartRay2()
|
||||
local run = true
|
||||
local pedcoord = GetEntityCoords(PlayerPedId())
|
||||
lib.requestModel('v_ret_ml_tablea', 30000)
|
||||
lib.requestModel('bkr_prop_coke_press_01aa', 30000)
|
||||
local table = CreateObject('bkr_prop_coke_press_01aa', pedcoord.x, pedcoord.y, pedcoord.z+1, heading, false, false)
|
||||
repeat
|
||||
local hit, entityHit, endCoords, surfaceNormal, matHash = lib.raycast.cam(511, 4, 10)
|
||||
|
||||
Reference in new issue
Block a user