Back to TPG

TPG.Util.UnitsToMeters

S🏷️ Util

Part of TPG namespace

TPG.Util.UnitsToMeters(units)
View on GitHub|gamemode/core/sh_utils.lua:167-169
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Source units to metres. Source units are roughly an inch, so this is the divisor everything that shows a player a distance goes through -- the compass and the objective HUD both read in metres because that is what the vehicles are scaled to.

Parameters

NameTypeDescription
unitsnumber

Returns

TypeDescription
numberMetres.

Examples

No examples available.

Used In

No usages found in the codebase.