mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user