The Lab
TASK native

_GET_SCRIPT_TASK_ACTION_TIME

returns float2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Returns an action time value for the script task task on ped.

Signature

C
float _GET_SCRIPT_TASK_ACTION_TIME(Ped ped, Hash task); // 0xA710DC5D25F8B942 b1207

Parameters

#NameType
1pedPed
2taskHash

Facts

Facts about _GET_SCRIPT_TASK_ACTION_TIME
Name
_GET_SCRIPT_TASK_ACTION_TIME
Hash
0xA710DC5D25F8B942
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(0xA710DC5D25F8B942, -- _GET_SCRIPT_TASK_ACTION_TIME
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash task
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xA710DC5D25F8B942", // _GET_SCRIPT_TASK_ACTION_TIME
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash task
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xA710DC5D25F8B942, // _GET_SCRIPT_TASK_ACTION_TIME
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash task
);
All TASK natives

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