| Property | Value |
|---|---|
| Native Name | GET_PLAYER_REGISTERED_CRIME |
| Hash | 0x532C5FDDB986EE5C |
| Return Type | BOOL |
| Build | 1207 |
| API Set | client |
| Parameters | player (Player), index (int), outData (Any*) |
Description: Reads one entry from the player's registered-crimes list (oldest -> newest) at the given index. - Commonly iterated with index 0..23. - Returns true if the entry exists/was copied into outData. - Scripts typically check outData.f_10 (reported flag) and use (crimeType, unk7) as inputs to other LAW queries.
outData (script struct<11>): struct RegisteredCrime { alignas(8) Hash crimeType; // outData.f_0 alignas(8) int bounty; // outData.f_1 alignas(8) Hash unk2; // outData.f_2 alignas(8) Any unk3; // outData.f_3 alignas(8) Any unk4; // outData.f_4 alignas(8) Any unk5; // outData.f_5 alignas(8) Any unk6; // outData.f_6 alignas(8) int unk7; // outData.f_7 (paired with crimeType in scripts) alignas(8) Any unk8; // outData.f_8 alignas(8) Any unk9; // outData.f_9 alignas(8) bool wasReported; // outData.f_10 };
Usage
Lua (Direct):
local result = GetPlayerRegisteredCrime(player, index, outData)
Lua (Hash):
local result = Citizen.InvokeNative(0x532C5FDDB986EE5C, player, index, outData)
Examples
struct outData
{
Hash crimeType;
int bounty;
Hash unk2;
Any unk3;
Any unk4;
Any unk5;
Any unk6;
int unk7;
Any unk8;
Any unk9;
bool unk10;
}