RedM Natives

_UGC_QUERY_GET_RATING

Hash0x24CD8FAEA1368379
Runtime nameUgcQueryGetRating
NamespaceNETWORK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _UGC_QUERY_GET_RATING(Any p0, int index, int p2);

Parameters

NameTypeDescription
p0Any—
indexint—
p2int—

Returns float

Usage

Lua
local retval = UgcQueryGetRating(p0, index, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x24CD8FAEA1368379, p0, index, p2, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = UgcQueryGetRating(p0, index, p2);

// by hash
const retval = Citizen.invokeNative('0x24CD8FAEA1368379', p0, index, p2, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x24CD8FAEA1368379, p0, index, p2);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

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