The Lab
SCRIPT native

BG_DOES_LAUNCH_PARAM_EXIST

returns BOOL2 paramsbuild 1207

Returns true if the background script at scriptIndex has a launch parameter named p1.

Signature

C
BOOL BG_DOES_LAUNCH_PARAM_EXIST(int scriptIndex, const char* p1); // 0x4AE1DFF337A86FDE b1207

Parameters

#NameType
1scriptIndexint
2p1const char*

Facts

Facts about BG_DOES_LAUNCH_PARAM_EXIST
Name
BG_DOES_LAUNCH_PARAM_EXIST
Hash
0x4AE1DFF337A86FDE
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 = Citizen.InvokeNative(0x4AE1DFF337A86FDE, -- BG_DOES_LAUNCH_PARAM_EXIST
  0, -- int scriptIndex
  "text" -- const char* p1
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x4AE1DFF337A86FDE", // BG_DOES_LAUNCH_PARAM_EXIST
  0, // int scriptIndex
  "text", // const char* p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x4AE1DFF337A86FDE, // BG_DOES_LAUNCH_PARAM_EXIST
  0, // int scriptIndex
  "text" // const char* p1
);
All SCRIPT natives

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