37 lines
925 B
Lua
37 lines
925 B
Lua
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 {
|
|
'@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.ytyp' -- Ensure exact file extension
|
|
}
|
|
|
|
data_file 'DLC_ITYP_REQUEST' 'stream/props.ytyp'
|
|
|