_ADD_TIME_TO_DATE_TIME
Hash
0x28EEACE9B43D9597Runtime name
AddTimeToDateTimeNamespaceCLOCK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _ADD_TIME_TO_DATE_TIME(Any* inDateTime, Any* timeToAdd, Any* outDateTime);Parameters
| Name | Type | Description |
|---|---|---|
inDateTime | Any* | — |
timeToAdd | Any* | — |
outDateTime | Any* | — |
Returns void
Usage
local inDateTime, timeToAdd, outDateTime = AddTimeToDateTime()
-- always works, by hash
local inDateTime, timeToAdd, outDateTime = Citizen.InvokeNative(0x28EEACE9B43D9597, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())JavaScript and C#
const [inDateTime, timeToAdd, outDateTime] = AddTimeToDateTime();
// by hash
const [inDateTime, timeToAdd, outDateTime] = Citizen.invokeNative('0x28EEACE9B43D9597', Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());var inDateTime = new OutputArgument();
var timeToAdd = new OutputArgument();
var outDateTime = new OutputArgument();
Function.Call((Hash)0x28EEACE9B43D9597, inDateTime, timeToAdd, outDateTime);
// inDateTime.GetResult<int>()
// timeToAdd.GetResult<int>()
// outDateTime.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.