RedM Natives

_GET_TASK_FISHING

Fishing Research: Only used in R* Scripts fishing_core and av_fishing_river

Hash0xF3735ACD11ACD500
Runtime nameGetTaskFishing
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _GET_TASK_FISHING(Ped ped, Any* p1);

Parameters

NameTypeDescription
pedPed—
p1Any*—

Returns BOOL

Description

Fishing Research: https://pastebin.com/NmK5ZLVs
Only used in R* Scripts fishing_core and av_fishing_river

Usage

Lua
local retval, p1 = GetTaskFishing(ped, p1)

-- always works, by hash
local retval, p1 = Citizen.InvokeNative(0xF3735ACD11ACD500, ped, Citizen.PointerValueIntInitialized(p1), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, p1] = GetTaskFishing(ped, p1);

// by hash
const [retval, p1] = Citizen.invokeNative('0xF3735ACD11ACD500', ped, Citizen.pointerValueIntInitialized(p1), Citizen.returnResultAnyway());
C#
var p1 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xF3735ACD11ACD500, ped, p1);
// p1.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • 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 InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.