_GOOGLE_ANALYTICS_START_EVENT
Based on its name and signature, here is our best reading:
Starts an analytics event with the given category, action, label and value, returning a success flag.
Signature
BOOL _GOOGLE_ANALYTICS_START_EVENT(const char* eventCategory, const char* eventAction, const char* eventLabel, int eventValue); // 0x1C54F031D7C0F7AC b1355Parameters
| # | Name | Type |
|---|---|---|
| 1 | eventCategory | const char* |
| 2 | eventAction | const char* |
| 3 | eventLabel | const char* |
| 4 | eventValue | int |
Facts
| Name | _GOOGLE_ANALYTICS_START_EVENT |
|---|---|
| Hash | 0x1C54F031D7C0F7AC |
| Namespace | |
| Returns | BOOL |
| Game build | 1355 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x1C54F031D7C0F7AC, -- _GOOGLE_ANALYTICS_START_EVENT
"text", -- const char* eventCategory
"text", -- const char* eventAction
"text", -- const char* eventLabel
0 -- int eventValue
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x1C54F031D7C0F7AC", // _GOOGLE_ANALYTICS_START_EVENT
"text", // const char* eventCategory
"text", // const char* eventAction
"text", // const char* eventLabel
0, // int eventValue
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x1C54F031D7C0F7AC, // _GOOGLE_ANALYTICS_START_EVENT
"text", // const char* eventCategory
"text", // const char* eventAction
"text", // const char* eventLabel
0 // int eventValue
);Related GOOGLE_ANALYTICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.