diff --git a/client/cornerselling.lua b/client/cornerselling.lua index 2b89fe2..52b2efd 100644 --- a/client/cornerselling.lua +++ b/client/cornerselling.lua @@ -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, diff --git a/client/functions.lua b/client/functions.lua index 4dae1d2..e05349d 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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) diff --git a/readme.md b/readme.md index 2402d22..4f0d315 100644 --- a/readme.md +++ b/readme.md @@ -14,8 +14,6 @@ - **[Bostra](https://discord.gg/5ncbwMNq):** Free scripts, sanity checks, and those cute mushrooms! - **[Feisty]():** Stunning visuals that make everything look amazing. - **Beta Testers:** Your invaluable feedback made this possible. -- **[Jim's Tebex](https://jimathy666.tebex.io/):** Open-source resources that helped refine coding skills. -- **[Jixeltay](https://jixeltay.tebex.io/category/scripts):** For creating scripts that teach and inspire the community. - **[1of1 Servers](https://1of1servers.com/):** Top-notch hosting and support. Join their [Discord](https://discord.gg/1of1servers). - **[Kamaryn](https://discord.gg/KPRmZqFS):** For the [installation guide video](https://youtu.be/zvuYnUfrqaA?si=FGJuBO5krZMC14Nd). @@ -49,7 +47,7 @@ - delete `qb-drugs` ### STEP 3 -- all locations are in the server files now utilizing callbacks to build targets +- all locations, shops, pricings, and recipes are in the server files now utilizing callbacks to build targets and retrieve data - shops.lua - travelling merchant - Weed Store