DATAFILE_UGC_SELECT_DATA
Based on its name and signature, here is our best reading:
Selects user-generated content data from the request ugcRequestId at index into a data file.
Signature
Any DATAFILE_UGC_SELECT_DATA(Any ugcRequestId, int index, Any p2); // 0x790EC421078F5C4E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ugcRequestId | Any |
| 2 | index | int |
| 3 | p2 | Any |
Facts
| Name | DATAFILE_UGC_SELECT_DATA |
|---|---|
| Hash | 0x790EC421078F5C4E |
| Namespace | |
| Returns | Any |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x790EC421078F5C4E, -- DATAFILE_UGC_SELECT_DATA
0, -- Any ugcRequestId
0, -- int index
0, -- Any p2
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x790EC421078F5C4E", // DATAFILE_UGC_SELECT_DATA
0, // Any ugcRequestId
0, // int index
0, // Any p2
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x790EC421078F5C4E, // DATAFILE_UGC_SELECT_DATA
0, // Any ugcRequestId
0, // int index
0 // Any p2
);Related DATAFILE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.