From d8bd36b2ed34748d0579cfc703437840579d4494 Mon Sep 17 00:00:00 2001 From: SMVampire Date: Mon, 17 May 2021 12:46:26 -0400 Subject: [PATCH] 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. --- client/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/client/functions.lua b/client/functions.lua index 24b1fb7f..171aebd9 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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