Skip to content

Commit

Permalink
fix(bridge/qb/functions): drawtext parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
D4isDAVID committed Jan 1, 2024
1 parent 07d6052 commit a4f0a3a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bridge/qb/client/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ functions.HasItem = HasItem
-- Utility

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

---@deprecated use DrawText3D from imports/utils.lua
functions.DrawText3D = DrawText3D
functions.DrawText3D = function(x, y, z, text)
DrawText3D(text, vec3(x, y, z), 0.35, 4, 255, 255, 255, 215)
end

---@deprecated use lib.requestAnimDict from ox_lib
functions.RequestAnimDict = lib.requestAnimDict
Expand Down

0 comments on commit a4f0a3a

Please sign in to comment.