refactor(vehicles): move garages to separate resource keep api

- Moved traffic locking to client
- removed garages (moved to ND_Garages resource)
- optimized and improved the api
- fixed smaller bugs
This commit is contained in:
Andyyy7666
2026-03-16 08:07:43 +01:00
parent b7222a1f8f
commit b837771300
7 changed files with 248 additions and 742 deletions

View File

@@ -8,16 +8,25 @@ fx_version "cerulean"
game "gta5"
lua54 "yes"
files {
"init.lua",
"compatibility/**/locale.lua",
"locales/*.json",
"ui/**"
}
ui_page "ui/index.html"
shared_script "@ox_lib/init.lua"
client_scripts {
"client/main.lua",
"shared/functions.lua",
"client/peds.lua",
"client/vehicle/main.lua",
"client/vehicle/garages.lua",
"client/vehicle.lua",
"client/functions.lua",
"client/events.lua",
"client/death.lua",
"client/groupadmin.lua",
"compatibility/**/client.lua"
}
server_scripts {
@@ -27,17 +36,12 @@ server_scripts {
"server/player.lua",
"server/vehicle.lua",
"server/functions.lua",
"server/groups.lua",
"server/groupadmin.lua",
"compatibility/**/server.lua",
"server/commands.lua"
}
files {
"init.lua",
"client/vehicle/data.lua",
"compatibility/**/locale.lua",
"locales/*.json"
}
dependencies {
"ox_lib",
"oxmysql"