From 95ffda1fa635caac1d31daf93a67e18d1b1fbd57 Mon Sep 17 00:00:00 2001 From: Matthew <22198949+MafewTM@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:33:31 -0400 Subject: [PATCH] fix: spacing --- client/camera.lua | 6 +++--- client/main.lua | 14 +++++++------- fxmanifest.lua | 7 ++++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/client/camera.lua b/client/camera.lua index 49d0b18..bfe6f5b 100644 --- a/client/camera.lua +++ b/client/camera.lua @@ -254,9 +254,9 @@ CreateThread(function() end local vehicle = cache.vehicle local cam2 = CreateCam('DEFAULT_SCRIPTED_FLY_CAMERA', true) - local msg =locale('info.title_breaking_news') - local bottom =locale('info.bottom_breaking_news') - local title =locale('info.breaking_news') + local msg = locale('info.title_breaking_news') + local bottom = locale('info.bottom_breaking_news') + local title = locale('info.breaking_news') AttachCamToEntity(cam2, cache.ped, 0.0,0.0,1.0, true) SetCamRot(cam2, 2.0,1.0,GetEntityHeading(cache.ped), 0) SetCamFov(cam2, fov) diff --git a/client/main.lua b/client/main.lua index 97c67ff..ef675b8 100644 --- a/client/main.lua +++ b/client/main.lua @@ -21,7 +21,7 @@ local function setLocationBlip() end local function takeOutVehicle(vehType, coords) - local netId = lib.callback.await('qbx_newsjob:server:spawnVehicle', false, vehType, coords,locale('info.news_plate')..tostring(math.random(1000, 9999)), true) + local netId = lib.callback.await('qbx_newsjob:server:spawnVehicle', false, vehType, coords, locale('info.news_plate')..tostring(math.random(1000, 9999)), true) local timeout = 100 while not NetworkDoesEntityExistWithNetworkId(netId) and timeout > 0 do Wait(10) @@ -59,7 +59,7 @@ local function menuVehicleGarage() lib.registerContext({ id = 'weazel_garage_context_menu', - title =locale('info.weazel_news_vehicles'), + title = locale('info.weazel_news_vehicles'), options = optionsMenu }) @@ -82,7 +82,7 @@ local function menuHeliGarage() lib.registerContext({ id = 'weazel_heli_context_menu', - title =locale('info.weazel_news_helicopters'), + title = locale('info.weazel_news_helicopters'), options = optionsMenu }) @@ -104,7 +104,7 @@ local function registerMainEntrance() icon = 'fa-solid fa-house', type = 'client', event = 'qbx_newsjob:client:target:enterLocation', - label =locale("info.enter"), + label = locale("info.enter"), distance = 1 }, }, @@ -146,7 +146,7 @@ local function registerMainExit() icon = 'fa-solid fa-house', type = 'client', event = 'qbx_newsjob:client:target:exitLocation', - label =locale("info.go_outside"), + label = locale("info.go_outside"), distance = 1 }, }, @@ -202,7 +202,7 @@ local function registerEnterRoof() icon = 'fa-solid fa-house', type = 'client', event = 'qbx_newsjob:client:target:enterRoof', - label =locale("info.roof_enter"), + label = locale("info.roof_enter"), distance = 1 }, }, @@ -258,7 +258,7 @@ local function registerExitRoof() icon = 'fa-solid fa-house', type = 'client', event = 'qbx_newsjob:client:target:exitRoof', - label =locale("info.roof_exit"), + label = locale("info.roof_exit"), distance = 1 }, }, diff --git a/fxmanifest.lua b/fxmanifest.lua index a382017..9d8bf0e 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -5,6 +5,8 @@ description 'QBX_NewsJob' repository 'https://github.com/Qbox-project/qbx_newsjob' version '1.0.1' +ox_lib 'locale' + shared_scripts { '@ox_lib/init.lua', '@qbx_core/modules/lib.lua', @@ -21,10 +23,9 @@ server_script { } files { + 'config/client.lua', 'locales/*.json', - 'config/client.lua', } lua54 'yes' -use_experimental_fxv2_oal 'yes' -ox_lib 'locale' \ No newline at end of file +use_experimental_fxv2_oal 'yes' \ No newline at end of file