BG_DOES_LAUNCH_PARAM_EXIST
Returns true if the background script at scriptIndex has a launch parameter named p1.
Signature
BOOL BG_DOES_LAUNCH_PARAM_EXIST(int scriptIndex, const char* p1); // 0x4AE1DFF337A86FDE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | scriptIndex | int |
| 2 | p1 | const char* |
Facts
| 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.
local result = Citizen.InvokeNative(0x4AE1DFF337A86FDE, -- BG_DOES_LAUNCH_PARAM_EXIST
0, -- int scriptIndex
"text" -- const char* p1
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x4AE1DFF337A86FDE", // BG_DOES_LAUNCH_PARAM_EXIST
0, // int scriptIndex
"text", // const char* p1
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x4AE1DFF337A86FDE, // BG_DOES_LAUNCH_PARAM_EXIST
0, // int scriptIndex
"text" // const char* p1
);Related SCRIPT natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.