The Lab
NETWORK native

GET_TIME_DIFFERENCE

returns int2 paramsbuild 1207

Returns the difference between two network times, timeA minus timeB.

Signature

C
int GET_TIME_DIFFERENCE(int timeA, int timeB); // 0xA2C6FC031D46FFF0 b1207

Parameters

#NameType
1timeAint
2timeBint

Facts

Facts about GET_TIME_DIFFERENCE
Name
GET_TIME_DIFFERENCE
Hash
0xA2C6FC031D46FFF0
Namespace
Returns
int
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(0xA2C6FC031D46FFF0, -- GET_TIME_DIFFERENCE
  0, -- int timeA
  0, -- int timeB
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xA2C6FC031D46FFF0", // GET_TIME_DIFFERENCE
  0, // int timeA
  0, // int timeB
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xA2C6FC031D46FFF0, // GET_TIME_DIFFERENCE
  0, // int timeA
  0 // int timeB
);
All NETWORK natives

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