The Lab
NETWORK native

NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT

returns BOOL3 paramsbuild 1207

Returns true if the player is a participant in the given script.

Signature

C
BOOL NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT(Player p0, Any* p1, Any p2); // 0x1AD5B71586B94820 b1207

Parameters

#NameType
1p0Player
2p1Any* (out pointer)
3p2Any

Facts

Facts about NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT
Name
NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT
Hash
0x1AD5B71586B94820
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, p1 = Citizen.InvokeNative(0x1AD5B71586B94820, -- NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT
  PlayerId(), -- Player p0
  Citizen.PointerValueInt(), -- Any* p1
  0, -- Any p2
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, p1] = Citizen.invokeNative("0x1AD5B71586B94820", // NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT
  PlayerId(), // Player p0
  Citizen.pointerValueInt(), // Any* p1
  0, // Any p2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var p1Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x1AD5B71586B94820, // NETWORK_IS_PLAYER_A_PARTICIPANT_ON_SCRIPT
  API.PlayerId(), // Player p0
  p1Arg, // Any* p1
  0 // Any p2
);
int p1 = p1Arg.GetResult<int>();
All NETWORK natives

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