RedM Natives

_SET_TASK_FISHING

Only used in R* Scripts fishing_core and av_fishing_river

Hash0xF3735ACD11ACD501
Runtime nameSetTaskFishing
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _SET_TASK_FISHING(Ped ped, Any* p1);

Parameters

NameTypeDescription
pedPed—
p1Any*—

Returns BOOL

Description

Only used in R* Scripts fishing_core and av_fishing_river

Usage

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

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

// by hash
const [retval, p1] = Citizen.invokeNative('0xF3735ACD11ACD501', ped, Citizen.pointerValueIntInitialized(p1), Citizen.returnResultAnyway());
C#
var p1 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xF3735ACD11ACD501, 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.