This commit is contained in:
Mustache Dom committed 2024-11-26 15:45:17 -08:00
1 parent 65597810c7
commit 26fd63d750
3 files changed
+7 -5

No files matched your search

+2
View File
@@ -12,6 +12,7 @@ local function reset(targ)
TaskWanderInArea(targ, coords.x, coords.y, coords.z, 100.0, 2, 10.0) TaskWanderInArea(targ, coords.x, coords.y, coords.z, 100.0, 2, 10.0)
Wait(10000) Wait(10000)
DeletePed(targ) DeletePed(targ)
targbusy = false
sold = true sold = true
active = false active = false
end end
@@ -60,6 +61,7 @@ function Cornersell()
until #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(targ)) < 2.0 until #(GetEntityCoords(PlayerPedId()) - GetEntityCoords(targ)) < 2.0
lib.requestAnimDict("rcmme_tracey1") lib.requestAnimDict("rcmme_tracey1")
TaskStartScenarioInPlace(targ, "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", 0, false) FreezeEntityPosition(targ, true) TaskStartScenarioInPlace(targ, "WORLD_HUMAN_STAND_IMPATIENT_UPRIGHT", 0, false) FreezeEntityPosition(targ, true)
print(data.ped)
AddMultiModel(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", { 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, action = function() sellDrug(data.item, data.amount, data.price, targ) end,
+4 -2
View File
@@ -504,6 +504,7 @@ function AddSingleModel(model, data, num)
end end
function AddMultiModel(model, data, num) function AddMultiModel(model, data, num)
print(model)
local options = {} local options = {}
for k, v in pairs (data) do for k, v in pairs (data) do
table.insert(options, { table.insert(options, {
@@ -516,7 +517,8 @@ function AddMultiModel(model, data, num)
elseif Config.Target == 'ox' then elseif Config.Target == 'ox' then
exports.ox_target:addLocalEntity(model, options) exports.ox_target:addLocalEntity(model, options)
elseif Config.Target == 'interact' then 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
end end
@@ -569,7 +571,7 @@ end
function StartRay2() function StartRay2()
local run = true local run = true
local pedcoord = GetEntityCoords(PlayerPedId()) 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) local table = CreateObject('bkr_prop_coke_press_01aa', pedcoord.x, pedcoord.y, pedcoord.z+1, heading, false, false)
repeat repeat
local hit, entityHit, endCoords, surfaceNormal, matHash = lib.raycast.cam(511, 4, 10) local hit, entityHit, endCoords, surfaceNormal, matHash = lib.raycast.cam(511, 4, 10)
+1 -3
View File
@@ -14,8 +14,6 @@
- **[Bostra](https://discord.gg/5ncbwMNq):** Free scripts, sanity checks, and those cute mushrooms! - **[Bostra](https://discord.gg/5ncbwMNq):** Free scripts, sanity checks, and those cute mushrooms!
- **[Feisty]():** Stunning visuals that make everything look amazing. - **[Feisty]():** Stunning visuals that make everything look amazing.
- **Beta Testers:** Your invaluable feedback made this possible. - **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). - **[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). - **[Kamaryn](https://discord.gg/KPRmZqFS):** For the [installation guide video](https://youtu.be/zvuYnUfrqaA?si=FGJuBO5krZMC14Nd).
@@ -49,7 +47,7 @@
- delete `qb-drugs` - delete `qb-drugs`
### STEP 3 ### 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 - shops.lua
- travelling merchant - travelling merchant
- Weed Store - Weed Store