remove loader function, ensure files through fx

This commit is contained in:
Mustache Dom committed 2026-01-31 02:21:15 -07:00
1 parent c7eca0285b
commit 11e7015672
20 files changed
+20 -25

No files matched your search

+1 -1
View File
@@ -21,6 +21,7 @@ server_scripts {
shared_scripts {
'@ox_lib/init.lua',
'shared/config.lua',
'shared/DrugData/*.lua',
}
lua54 'yes'
@@ -28,6 +29,5 @@ lua54 'yes'
files {
'client/**.lua',
'server/**.lua',
'shared/**.lua',
'locales/**.json'
}
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['TravellingMerchant'] then return end
Config.Merchant = {
Locations = {
Travellingmerchant = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['cocaine'] then return end
Config.Cocaine = {
Locations = {
MakePowder = { -- size = vector3(x,y,z) x = length, y = width, z = height
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['consumables'] then return end
local emotes = {
smoke = {
dict = "amb@world_human_aa_smoke@male@idle_a",
+2
View File
@@ -1,3 +1,5 @@
if not Config.Drugs['cornerselling'] then return end
Config.Cornerselling = {
noSellZones = {
{loc = vector3(445.11, -991.3, 30.69), width = 10.0, length = 10.0, height = 10.0, rot = 180.0},
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['crack'] then return end
Config.Crack = {
Recipes = {
cookcrack = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['deliveries'] then return end
Config.Deliveries = {
Locations = {
dropOff = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['heroin'] then return end
Config.Heroin = {
Recipes = {
dryheroin = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['lean'] then return end
Config.Lean = {
Locations = {
SyrupVendor = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['lsd'] then return end
Config.LSD = {
Recipes = {
vial = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['mescaline'] then return end
Config.Mescaline = {
Locations = {
DryOutMescaline = { -- where to dry out your mescaline
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['meth'] then return end
Config.Meth = {
Locations = {
CookMeth = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['oxyruns'] then return end
Config.Oxy = {
Locations = {
OxyPayForTruck = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['pharma'] then return end
Config.Pharma = {
Locations = {
FillPrescription = { -- where to fill out your prescription
+1
View File
@@ -1 +1,2 @@
if not Config.Drugs['shrooms'] then return end
Config.Shrooms ={}
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['weed'] then return end
Config.Weed = {
Locations = {
WeedTele = { -- where you tele out of weed
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['whippit'] then return end
Config.Whippit = {
Recipes = {
cracker = {
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['wholesale'] then return end
Config.Wholesale = {
settings = {
WholesaleQuantityBonus = 0.05, -- 5% bonus per 10 units sold (up to 20%)
+1
View File
@@ -1,3 +1,4 @@
if not Config.Drugs['xtc'] then return end
Config.XTC = {
Recipes = {
raw = {
-24
View File
@@ -71,27 +71,3 @@ Config.Bzz = { -- if you have BZZZ props for these turn it on if you want
shrooms = false,
weed = false,
}
for k, v in pairs (Config.Drugs) do
if not v then goto continue end
local resourceName = 'md-drugs'
local filePath = 'shared/DrugData/' .. k .. '.lua'
local fullScript = LoadResourceFile(resourceName, filePath)
if not fullScript then
Bridge.Prints.Error("Error: Failed to load module '" .. filePath .. "' from resource '" .. resourceName .. "'.")
return false
end
local chunk, err = load(fullScript, filePath, "t")
if not chunk then
Bridge.Prints.Error("Error loading Lua chunk from '" .. filePath .. "': " .. tostring(err))
return false
end
local success, execErr = pcall(chunk)
if not success then
Bridge.Prints.Error("Error executing Lua chunk from '" .. filePath .. "': " .. tostring(execErr))
return false
end
::continue::
end