Skip to content

Commit a4f0a3a

Browse files
committed
fix(bridge/qb/functions): drawtext parameters
1 parent 07d6052 commit a4f0a3a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bridge/qb/client/functions.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ functions.HasItem = HasItem
2020
-- Utility
2121

2222
---@deprecated use DrawText2D from imports/utils.lua
23-
functions.DrawText = DrawText2D
23+
functions.DrawText = function(x, y, width, height, scale, r, g, b, a, text)
24+
DrawText2D(text, vec2(x, y), width, height, scale, 4, r, g, b, a)
25+
end
2426

2527
---@deprecated use DrawText3D from imports/utils.lua
26-
functions.DrawText3D = DrawText3D
28+
functions.DrawText3D = function(x, y, z, text)
29+
DrawText3D(text, vec3(x, y, z), 0.35, 4, 255, 255, 255, 215)
30+
end
2731

2832
---@deprecated use lib.requestAnimDict from ox_lib
2933
functions.RequestAnimDict = lib.requestAnimDict

0 commit comments

Comments
 (0)