BG_GET_LAUNCH_PARAM_VALUE
Returns the value of the launch parameter named p1 for the background script at scriptIndex.
Signature
int BG_GET_LAUNCH_PARAM_VALUE(int scriptIndex, const char* p1); // 0x55C40B7592BAD213 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | scriptIndex | int |
| 2 | p1 | const char* |
Facts
| Name | BG_GET_LAUNCH_PARAM_VALUE |
|---|---|
| Hash | 0x55C40B7592BAD213 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x55C40B7592BAD213, -- BG_GET_LAUNCH_PARAM_VALUE
0, -- int scriptIndex
"text", -- const char* p1
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x55C40B7592BAD213", // BG_GET_LAUNCH_PARAM_VALUE
0, // int scriptIndex
"text", // const char* p1
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x55C40B7592BAD213, // BG_GET_LAUNCH_PARAM_VALUE
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.