Skip to content

Commit

Permalink
fix: spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Oct 4, 2024
1 parent 1b6aa53 commit 95ffda1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions client/camera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
})

Expand All @@ -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
})

Expand All @@ -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
},
},
Expand Down Expand Up @@ -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
},
},
Expand Down Expand Up @@ -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
},
},
Expand Down Expand Up @@ -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
},
},
Expand Down
7 changes: 4 additions & 3 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'
use_experimental_fxv2_oal 'yes'

0 comments on commit 95ffda1

Please sign in to comment.