fix(3DText): Force Scale Float

Some older resources used scale as a number. Scale _must_ be a float.
This forces scale to be a float if it exists.
This commit is contained in:
SMVampire
2021-05-17 12:46:26 -04:00
committed by GitHub
parent bc95e024cd
commit d8bd36b2ed
+1
View File
@@ -699,6 +699,7 @@ end
ESX.Game.Utils.DrawText3D = function(coords, text, scale, font)
local vector = type(coords) == "vector3" and coords or vec(coords.x, coords.y, coords.z)
if scale then scale = scale + 0.0 end
if not scale then scale = 0.35 end
if not font then font = 4 end