diff --git a/resources/[inventory]/nordi_hookah/fxmanifest.lua b/resources/[inventory]/nordi_hookah/fxmanifest.lua index 133a7c7c4..342f182ca 100644 --- a/resources/[inventory]/nordi_hookah/fxmanifest.lua +++ b/resources/[inventory]/nordi_hookah/fxmanifest.lua @@ -1,23 +1,37 @@ fx_version 'cerulean' game 'gta5' +-- Enable Lua 5.4 (REQUIRED for ox_lib and modern QB resources) +lua54 'yes' +use_experimental_fxv2_oal 'yes' -- Better memory handling + name 'qb-hookah' description 'Hookah Smoking System' version '1.0.0' +-- Load critical dependencies FIRST +dependencies { + 'qb-core', -- Must load before qb-target + 'qb-target', -- Required for target system + 'ox_lib' -- Requires Lua 5.4 +} + shared_script '@qb-core/import.lua' +-- Scripts load in THIS order (important!) client_scripts { - '@qb-target/client.lua', - '@ox_lib/init.lua', - 'client/main.lua' + '@ox_lib/init.lua', -- Load ox_lib BEFORE qb-target + '@qb-target/client.lua', -- Then load qb-target + 'client/main.lua' -- Your script last } server_script 'server/main.lua' +-- Proper ytyp/prop file declaration files { 'stream/props.ytyp', - 'stream/hookah_prop.*' + 'stream/hookah_prop.ytyp' -- Ensure exact file extension } data_file 'DLC_ITYP_REQUEST' 'stream/props.ytyp' +