RedM Natives

GET_LAUNCH_PARAM_VALUE

Hash0x65E65CA6A0FE59D4
Runtime nameGetLaunchParamValue
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207

Signature

const char* GET_LAUNCH_PARAM_VALUE(const char* paramName);

Parameters

NameTypeDescription
paramNameconst char*—

Returns const char*

Usage

Lua
local retval = GetLaunchParamValue(paramName)

-- always works, by hash
local retval = Citizen.InvokeNative(0x65E65CA6A0FE59D4, paramName, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetLaunchParamValue(paramName);

// by hash
const retval = Citizen.invokeNative('0x65E65CA6A0FE59D4', paramName, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x65E65CA6A0FE59D4, paramName);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.