diff --git a/client/main.lua b/client/main.lua index 5087641..515a57b 100644 --- a/client/main.lua +++ b/client/main.lua @@ -56,7 +56,7 @@ for i = 1, #config.locations do debug = config.polyDebug, inside = function() if not lib.progressActive() then - DrawText3D(locale('wash_prompt', price), coords) + qbx.drawText3d({text = locale('wash_prompt', price), coords = coords}) if IsControlJustPressed(0, 38) then if GetVehicleDirtLevel(cache.vehicle) > config.dirtLevel then local netId = NetworkGetNetworkIdFromEntity(cache.vehicle) @@ -66,7 +66,7 @@ for i = 1, #config.locations do end end else - DrawText3D(locale('not_available'), coords) + qbx.drawText3d({text = locale('not_available'), coords = coords}) end end, }) diff --git a/config/client.lua b/config/client.lua index f72b118..1c81630 100644 --- a/config/client.lua +++ b/config/client.lua @@ -1,7 +1,7 @@ return { useTarget = false, polyDebug = false, - + dirtLevel = 0.1, -- Threshold for the dirt level to be counted as dirty locations = { vec3(25.29, -1391.96, 29.33), diff --git a/fxmanifest.lua b/fxmanifest.lua index 537e9ba..46c3c65 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -9,11 +9,13 @@ ox_lib 'locale' shared_scripts { '@ox_lib/init.lua', - '@qbx_core/modules/utils.lua', } server_script 'server/main.lua' -client_script 'client/main.lua' +client_scripts { + '@qbx_core/modules/lib.lua', + 'client/main.lua' +} files { 'locales/*.json',