Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: utils to lib #9

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
})
Expand Down
2 changes: 1 addition & 1 deletion config/client.lua
Original file line number Diff line number Diff line change
@@ -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),
Expand Down
6 changes: 4 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading