The Lab
GOOGLE_ANALYTICS native

_GOOGLE_ANALYTICS_START_EVENT

returns BOOL4 paramsbuild 1355

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

C
BOOL _GOOGLE_ANALYTICS_START_EVENT(const char* eventCategory, const char* eventAction, const char* eventLabel, int eventValue); // 0x1C54F031D7C0F7AC b1355

Parameters

#NameType
1eventCategoryconst char*
2eventActionconst char*
3eventLabelconst char*
4eventValueint

Facts

Facts about _GOOGLE_ANALYTICS_START_EVENT
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.

Lua
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
  -- ...
end
JavaScript
const 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) {
  // ...
}
C#
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
);
All GOOGLE_ANALYTICS natives

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