The Lab
MISC native

_GET_TEMPERATURE_AT_COORDS

returns float3 paramsbuild 1207

Returns the temperature at the coordinates (x, y, z).

Pair it with _SHOULD_USE_METRIC_TEMPERATURE when displaying the value.

Signature

C
float _GET_TEMPERATURE_AT_COORDS(float x, float y, float z); // 0xB98B78C3768AF6E0 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat

Facts

Facts about _GET_TEMPERATURE_AT_COORDS
Name
_GET_TEMPERATURE_AT_COORDS
Hash
0xB98B78C3768AF6E0
Namespace
Returns
float
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xB98B78C3768AF6E0, -- _GET_TEMPERATURE_AT_COORDS
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xB98B78C3768AF6E0", // _GET_TEMPERATURE_AT_COORDS
  0.0, // float x
  0.0, // float y
  0.0, // float z
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xB98B78C3768AF6E0, // _GET_TEMPERATURE_AT_COORDS
  0.0f, // float x
  0.0f, // float y
  0.0f // float z
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.