The Lab
BUILTIN native

POW

returns float2 paramsbuild 1207

Returns base raised to the power of exponent.

Signature

C
float POW(float base, float exponent); // 0xE3621CC40F31FE2E b1207

Parameters

#NameType
1basefloat
2exponentfloat

Facts

Facts about POW
Name
POW
Hash
0xE3621CC40F31FE2E
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(0xE3621CC40F31FE2E, -- POW
  0.0, -- float base
  0.0, -- float exponent
  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("0xE3621CC40F31FE2E", // POW
  0.0, // float base
  0.0, // float exponent
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xE3621CC40F31FE2E, // POW
  0.0f, // float base
  0.0f // float exponent
);
All BUILTIN natives

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