fx_version 'cerulean'

game "gta5"

author "Xirvin#0985 and Project Sloth"
version '2.0.8'

repository 'Project-Sloth/ps-housing'

lua54 'yes'

ui_page 'html/index.html'

dependency {
  'fivem-freecam',
}

shared_script {
  '@ox_lib/init.lua',
  "shared/config.lua",
  "shared/framework.lua",
}

client_script {
  'client/shell.lua',
  'client/apartment.lua',
  'client/cl_property.lua',
  'client/client.lua',
  'client/modeler.lua',
  'client/migrate.lua'
}

server_script {
  '@oxmysql/lib/MySQL.lua',
  "server/sv_property.lua",
  "server/server.lua",
  "server/migrate.lua",
}

files {
  'html/**',
  'stream/starter_shells_k4mb1.ytyp',
  'stream/**.ytyp'
}

-- Fix for "stuck in black loading screen"
data_file 'DLC_ITYP_REQUEST' 'x64c:/levels/gta5/interiors/int_props/int_corporate.rpf/int_corporate.ytyp'
data_file 'DLC_ITYP_REQUEST' 'x64c:/levels/gta5/interiors/int_props/int_industrial.rpf/int_industrial.ytyp'
data_file 'DLC_ITYP_REQUEST' 'x64c:/levels/gta5/interiors/int_props/int_lev_des.rpf/int_lev_des.ytyp'
data_file 'DLC_ITYP_REQUEST' 'x64c:/levels/gta5/interiors/int_props/int_residential.rpf/int_residential.ytyp'
data_file 'DLC_ITYP_REQUEST' 'x64c:/levels/gta5/interiors/int_props/int_retail.rpf/int_retail.ytyp'
data_file 'DLC_ITYP_REQUEST' 'x64c:/levels/gta5/interiors/int_props/int_services.rpf/int_services.ytyp'

data_file 'DLC_ITYP_REQUEST' 'starter_shells_k4mb1.ytyp'
data_file 'DLC_ITYP_REQUEST' 'stream/**.ytyp'

this_is_a_map 'yes'
