The Lab
DATABINDING native

_DATABINDING_ADD_DATA_FLOAT

returns Any3 paramsbuild 1207

Adds a float entry named p1 under the given data container and returns the new entry id.

Signature

C
Any _DATABINDING_ADD_DATA_FLOAT(Any p0, const char* p1, float p2); // 0x5154228273ADB9A6 b1207

Parameters

#NameType
1p0Any
2p1const char*
3p2float

Facts

Facts about _DATABINDING_ADD_DATA_FLOAT
Name
_DATABINDING_ADD_DATA_FLOAT
Hash
0x5154228273ADB9A6
Namespace
Returns
Any
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(0x5154228273ADB9A6, -- _DATABINDING_ADD_DATA_FLOAT
  0, -- Any p0
  "text", -- const char* p1
  0.0, -- float p2
  Citizen.ResultAsInteger()
)
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("0x5154228273ADB9A6", // _DATABINDING_ADD_DATA_FLOAT
  0, // Any p0
  "text", // const char* p1
  0.0, // float p2
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x5154228273ADB9A6, // _DATABINDING_ADD_DATA_FLOAT
  0, // Any p0
  "text", // const char* p1
  0.0f // float p2
);
All DATABINDING natives

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