Skip to content

law


_report_crime

void native.law._report_crime(int player, int crime_type, int bounty, int entity, bool is_known_suspect)

crimeType:
enum eCrimeType : Hash
{
    CRIME_ACCOMPLICE = 0xAF074F6D,
    CRIME_ARSON = 0x68134DC7,
    CRIME_ASSAULT = 0x0BADC882,
    CRIME_ASSAULT_ANIMAL = 0x18DA55EE,
    CRIME_ASSAULT_CORPSE = 0x4E5F23F2,
    CRIME_ASSAULT_HORSE = 0xC4736181,
    CRIME_ASSAULT_LAW = 0xD7466D7C,
    CRIME_ASSAULT_LIVESTOCK = 0xCCE1CCBD,
    CRIME_BANK_ROBBERY = 0x6A1ADE3D,
    CRIME_BURGLARY = 0xA54C77E0,
    CRIME_CHEATING = 0xA2FF1145,
    CRIME_DISTURBANCE = 0x5011F613,
    CRIME_EXPLOSION = 0x3EBA7A37,
    CRIME_EXPLOSION_POISON = 0x91D0A0E1,
    CRIME_GRAVE_ROBBERY = 0x971EA5AF,
    CRIME_HASSLE = 0x58488776,
    CRIME_HIT_AND_RUN = 0xFF0A3CC4,
    CRIME_HIT_AND_RUN_LAW = 0x064814AF,
    CRIME_INTIMIDATION = 0x8319FBAB,
    CRIME_JACK_HORSE = 0x82F7E4A2,
    CRIME_JACK_VEHICLE = 0x6B981F4C,
    CRIME_JAIL_BREAK = 0x12C1D589,
    CRIME_KIDNAPPING = 0x98F908DB,
    CRIME_KIDNAPPING_LAW = 0xFD72A7EA,
    CRIME_LASSO_ASSAULT = 0x56EE5D5A,
    CRIME_LAW_IS_THREATENED = 0x1CB91DF0,
    CRIME_LOITERING = 0x6629D2F4,
    CRIME_LOOTING = 0x55AD2BEB,
    CRIME_MURDER = 0xE28ECE7E,
    CRIME_MURDER_ANIMAL = 0x48F59A66,
    CRIME_MURDER_HORSE = 0xC7261D79,
    CRIME_MURDER_LAW = 0x7797FCE7,
    CRIME_MURDER_LIVESTOCK = 0x9569C546,
    CRIME_MURDER_PLAYER = 0xF5ABD6C9,
    CRIME_MURDER_PLAYER_HORSE = 0xD55C6A79,
    CRIME_PROPERTY_DESTRUCTION = 0x533B003D,
    CRIME_RESIST_ARREST = 0xDF577BA5,
    CRIME_ROBBERY = 0xA3BEDE4C,
    CRIME_SELF_DEFENCE = 0xBD6A0AA3,
    CRIME_STAGECOACH_ROBBERY = 0xFC738E61,
    CRIME_STOLEN_GOODS = 0x9A949C79,
    CRIME_THEFT = 0x72ADE410,
    CRIME_THEFT_HORSE = 0xBE3A5838,
    CRIME_THEFT_LIVESTOCK = 0x85BA08FD,
    CRIME_THEFT_VEHICLE = 0x43A9ECA1,
    CRIME_THREATEN = 0x941C985A,
    CRIME_THREATEN_LAW = 0x7F908566,
    CRIME_TRAIN_ROBBERY = 0x647D2A5A,
    CRIME_TRAMPLE = 0x45DB39D8,
    CRIME_TRAMPLE_LAW = 0xF00F266B,
    CRIME_TRAMPLE_PLAYER = 0x75970C15,
    CRIME_TRESPASSING = 0xAEDE8E35,
    CRIME_UNARMED_ASSAULT = 0x5098CC5A,
    CRIME_VANDALISM = 0x80FDC759,
    CRIME_VANDALISM_VEHICLE = 0xF9E7ECE4,
    CRIME_VEHICLE_DESTRUCTION = 0x54A85DDC,
    CRIME_WANTED_LEVEL_UP_DEBUG_HIGH = 0x99C52FF5,
    CRIME_WANTED_LEVEL_UP_DEBUG_LOW = 0xD891890F
};

suppress_crime_this_frame

void native.law.suppress_crime_this_frame(int player, int crime_type, int p2, int p3, int p4)

crimeType: see _REPORT_CRIME

num_crimes_suppressed

int native.law.num_crimes_suppressed(int player, int crime_type)

Returns amount of suppressed crimes to be used later in the function MPINTRO_CRIME_MONITOR_MAINTAIN

_0xffebe5aa96bc2e4e

int native.law._0xffebe5aa96bc2e4e(int ped, int crime_type, bool p2)


_0x15abd5004cad2d99

void native.law._0x15abd5004cad2d99(int p0)

Params: p0 either 0, 1 or -1 in R* Scripts
Set to 0 called together with _SUPPRESS_CRIME

_0xf611de44aeb36a1d

void native.law._0xf611de44aeb36a1d(int crime_type, bool p1)


_0x3d2674828a4e6b3c

bool native.law._0x3d2674828a4e6b3c()


_0xc5eb2755fa25f1e9

void native.law._0xc5eb2755fa25f1e9(bool p0)


get_bounty

int native.law.get_bounty(int player)


add_bounty

void native.law.add_bounty(int player, int item_value_amount)


set_bounty

void native.law.set_bounty(int player, int amount)


clear_bounty

void native.law.clear_bounty(int player)


get_wanted_score

int native.law.get_wanted_score(int player)


set_wanted_score

void native.law.set_wanted_score(int player, int intensity)


clear_wanted_score

void native.law.clear_wanted_score(int player)


_0x331d349e0380b097

void native.law._0x331d349e0380b097(int p0)


_0x292ad61a33a7a485

void native.law._0x292ad61a33a7a485()

Only used in R* Script fm_mission_controller
_CLEAR_WANTED_*

_0x07e8b8b20570271c

void native.law._0x07e8b8b20570271c(int player)

Used in SP only, called together with 0x55F37F5F3F2475E1 & CLEAR_WANTED_SCORE
_REPORT_*

_0x22741652985c84d0

void native.law._0x22741652985c84d0(int player, int law_region_hash)

Used in SP only
_REPORT_*

_report_player_law_dispatch_response_override

void native.law._report_player_law_dispatch_response_override(int player, int dispatch_response_hash)


_0x9ef07cfbb19a9733

bool native.law._0x9ef07cfbb19a9733()

Only used in shoprobberies R* Scripts

_set_law_disabled

void native.law._set_law_disabled(bool toggle)


_force_law_on_local_player_immediately

void native.law._force_law_on_local_player_immediately()


_set_law_region

void native.law._set_law_region(int player, int law_region_hash, int state_hash)

enum eLawRegion : Hash
{
    LAW_DISPATCH_REGION_NONE = 0,
    LAW_REGION_AGUASDULCES = 0x2F573EBE,
    LAW_REGION_ANNESBURG = 0x68CAFD50,
    LAW_REGION_ARMADILLO = 0xF0B90756,
    LAW_REGION_BAYOU_NWA = 0x80966B1C,
    LAW_REGION_BEECHERS_HOPE = 0xE2544977,
    LAW_REGION_BIG_VALLEY = 0x3DF1559A,
    LAW_REGION_BLACKWATER = 0x60D4886D,
    LAW_REGION_BLACKWATER_MAINGAME = 0x66553576,
    LAW_REGION_BLUEGILL_MARSH = 0x1D6AED8E,
    LAW_REGION_BRAITHWAITE_MANOR = 0x3D71E7FF,
    LAW_REGION_BUTCHER_CREEK = 0x2B3E1822,
    LAW_REGION_CALIGA_HALL = 0xF3FE5080,
    LAW_REGION_CORNWALL = 0xCC4672FA,
    LAW_REGION_CUMBERLAND_FOREST = 0x81A78306,
    LAW_REGION_EMERALD_RANCH = 0x5C069DF3,
    LAW_REGION_FORT_WALLACE = 0x0AF25192,
    LAW_REGION_GREAT_PLAINS = 0xB20573FA,
    LAW_REGION_GREAT_PLAINS_MAINGAME = 0x9862FF7C,
    LAW_REGION_GRIZZLIES = 0xBB936031,
    LAW_REGION_GUAMA = 0x200DFF42,
    LAW_REGION_HEARTLANDS = 0xAD14DA65,
    LAW_REGION_LAGRAS = 0xC64808D3,
    LAW_REGION_MACFARLANES_RANCH = 0x396A7D5F,
    LAW_REGION_MANICATO = 0x039DB6BF,
    LAW_REGION_MANZANITA_POST = 0x895E580E,
    LAW_REGION_MANZANITA_POST_MAINGAME = 0x9BDD6A38,
    LAW_REGION_OCCUPIED_CARAVAN_CAMP = 0x7EBABB01,
    LAW_REGION_OLD_MAP_WILDERNESS = 0xCBB45950,
    LAW_REGION_OLD_MAP_WILDERNESS_MAINGAME = 0x9F839BE7,
    LAW_REGION_OUTLAW3 = 0x97A02FC1,
    LAW_REGION_PRONGHORN_RANCH = 0x398E4BFC,
    LAW_REGION_RHODES = 0x89222928,
    LAW_REGION_RHODES_LOCKDOWN = 0xB1181671,
    LAW_REGION_RIDGEWOOD_FARM = 0x635C3028,
    LAW_REGION_ROANOKE_RIDGE = 0x46386A9A,
    LAW_REGION_SAINT_DENIS = 0x5CF7C268,
    LAW_REGION_SAINT_DENIS_RURAL = 0x4FD5331A,
    LAW_REGION_SCARLETT_MEADOWS = 0x5FDD9717,
    LAW_REGION_SISIKA = 0x2B6BBA52,
    LAW_REGION_STRAWBERRY = 0xDD932620,
    LAW_REGION_TALL_TREES = 0xD939B758,
    LAW_REGION_TALL_TREES_MAINGAME = 0x084B17DF,
    LAW_REGION_THIEVES_LANDING = 0x3D0C2EB6,
    LAW_REGION_THIEVES_LANDING_MAINGAME = 0x61C450F3,
    LAW_REGION_TUMBLEWEED = 0x0EFAF8DC,
    LAW_REGION_VALENTINE = 0xA7A3F0C3,
    LAW_REGION_VALENTINE_LOCKDOWN = 0x123582FE,
    LAW_REGION_VAN_HORN = 0x619B528E,
    LAW_REGION_WAPITI = 0x7A976E02
};

_0x5e6f375ca101c108

void native.law._0x5e6f375ca101c108(int player, bool p1)

Only used in R* SP Scripts

_set_law_rbs_volume

void native.law._set_law_rbs_volume(int player, int p1)


is_law_incident_active

bool native.law.is_law_incident_active(int player)


_0x148e7ac8141c9e64

int native.law._0x148e7ac8141c9e64(int player)


_0xedfc6c1fd1c964f5

void native.law._0xedfc6c1fd1c964f5(int player, int crime_type, int bounty, float p3, float p4, bool p5, float p6, float p7, int p8)

_SET_C* - _SET_D*

_law_witness_response_task

bool native.law._law_witness_response_task(int ped_group1, int ped, int ped_group2, float x, float y, float z, int crime_type)


_0x018f30d762e62df8

int native.law._0x018f30d762e62df8(int ped, ptr int p1)


_0x318f0f9a4426cfa2

int native.law._0x318f0f9a4426cfa2(int ped, ptr int p1)

Only used in R* SP Script av_amb_camp_robbery

_0x95878b13e272ef1f

int native.law._0x95878b13e272ef1f(int entity, int ped, bool p2, float x, float y, float z, int crime_type)


_add_witness_response

void native.law._add_witness_response(int player, int crime_type, int ped_group)


_0xd7494ded50c6ef52

void native.law._0xd7494ded50c6ef52(int player, int crime_type, int p2)

Only used in R* SP Scripts
Params: p2 either 1 or 2

are_witnesses_active

bool native.law.are_witnesses_active(int player)


_are_witnesses_pending

bool native.law._are_witnesses_pending(int player)


_are_investigators_active

bool native.law._are_investigators_active(int player, bool are_investigators_active, int p2)


_0x522f74636df10201

void native.law._0x522f74636df10201(int player, int item_set)


_0xda1a9adc4e3d4b16

void native.law._0xda1a9adc4e3d4b16(int item_set, bool p1, bool p2)

Only used in R* SP Scripts
Params: p1 = true, p2 = false

_enable_dispatch_law

void native.law._enable_dispatch_law(bool toggle)


_enable_dispatch_law_2

void native.law._enable_dispatch_law_2(bool toggle)


_are_any_law_peds_investigating

bool native.law._are_any_law_peds_investigating()

Only used in rcm_homerob00 R* Script

_are_law_peds_enabled_for_train

bool native.law._are_law_peds_enabled_for_train()

Only used in trainrobbery_ambient R* Script

_0x82f11e1296996574

void native.law._0x82f11e1296996574(int p0)

Only used in rcm_gunslinger1_1 R* Script: p0 = 0

_0x3852237a3d9df145

void native.law._0x3852237a3d9df145(int p0)


_0x0eaf918f751f27ba

bool native.law._0x0eaf918f751f27ba(int ped)


_0xc0df161950fb101e

bool native.law._0xc0df161950fb101e(int ped)

Only used in rcm_serial_killer1 R* Script

_0xe4d6e45f491a66cb

int native.law._0xe4d6e45f491a66cb(int player, int p1)


_0xe9eb79cbf9c0f58a

int native.law._0xe9eb79cbf9c0f58a(int player)

Returns p1 value for 0xE4D6E45F491A66CB

_0x21213b833ef4dae7

void native.law._0x21213b833ef4dae7(int player, int ped, ref vec3 out_coords)


_0x61b98367d93f012f

void native.law._0x61b98367d93f012f(int player)


_0x6abc50979655bee7

void native.law._0x6abc50979655bee7(int player, ptr int crime_type, int p2)


_0x390710d2dafa6bff

void native.law._0x390710d2dafa6bff(int player, bool p1)

_CLEAR*

_get_crime_bounty_amount_by_type

int native.law._get_crime_bounty_amount_by_type(int crime_type)

Returns bounty (increment) value

_0xdaefdfdb2aeece37

int native.law._0xdaefdfdb2aeece37(int crime_type, int p1)

crimeType: see _REPORT_CRIME

_get_hud_player_crime_type

int native.law._get_hud_player_crime_type(int player)

See _REPORT_CRIME

_0xe083beda81709891

int native.law._0xe083beda81709891(int player)


_0x89e005b1662f6e48

bool native.law._0x89e005b1662f6e48(int player, int p1, int p2)


_0x3738b784ddd35cc6

bool native.law._0x3738b784ddd35cc6(int player, int p1, int p2)


_0x0bdfebcf40a5f7e3

int native.law._0x0bdfebcf40a5f7e3(int crime_type)

Only used in net_fetch R* Script

_set_custom_law_dispatch_response

void native.law._set_custom_law_dispatch_response(int dispatch_response_hash)

Note: This native is only used in multiplayer scripts
dispatchResponseHash: see update1/common/data/dispatchresponses/..

_create_law_dispatch_response_for_coords

int native.law._create_law_dispatch_response_for_coords(float x, float y, float z, int dispatch_response_hash)

dispatchResponseHash: see common/data/dispatchresponses/..

_set_bounty_hunter_pursuit_cleared

void native.law._set_bounty_hunter_pursuit_cleared()

Force clears local player's wanted level

_0xbd944a3d36e992de

void native.law._0xbd944a3d36e992de()

Called together with REPORT_POLICE_SPOTTED_PLAYER

_0x987be590fb9d41e5

void native.law._0x987be590fb9d41e5(bool p0)


_0xdcf12b89624aac96

void native.law._0xdcf12b89624aac96(bool p0)


_0xddce8e960d1de240

void native.law._0xddce8e960d1de240(bool p0)


_0xdea083c16bb91345

void native.law._0xdea083c16bb91345()


_0x9c8a2bf37e966464

void native.law._0x9c8a2bf37e966464(int player, int item_set)

Only used in act_bankrobbery01 R* Script

_0x9d5c9a5a3321b128

bool native.law._0x9d5c9a5a3321b128(int player)


_0x0f230de0ddbe3649

bool native.law._0x0f230de0ddbe3649(int player)


_0x9945a3e2528a02e8

bool native.law._0x9945a3e2528a02e8(int player)


_get_time_since_last_seen_by_law

float native.law._get_time_since_last_seen_by_law(int player)

Returns the amount of time (probably in game minutes) since last seen by the law / left the wanted radius

_0x9b4c564bfa7cff37

void native.law._0x9b4c564bfa7cff37(float p0)


_set_allow_disabled_law_responses

void native.law._set_allow_disabled_law_responses(bool toggle)


reset_wanted_for_new_incident

void native.law.reset_wanted_for_new_incident(int player)


_0x856ce8fde2416602

bool native.law._0x856ce8fde2416602(int ped)


_0x7351da734f989f4e

bool native.law._0x7351da734f989f4e(int entity)

Only used in shoprobberies

_get_bounty_hunter_global_cooldown

int native.law._get_bounty_hunter_global_cooldown(int p0)

p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts

_set_bounty_hunter_global_cooldown

void native.law._set_bounty_hunter_global_cooldown(int p0, int p1)

p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts

_0x2001687f9562fd9d

void native.law._0x2001687f9562fd9d(int p0)

Only used in resapwn_dump_body R* Script

_pause_bounty_hunter_cooldown

void native.law._pause_bounty_hunter_cooldown(int p0, bool p1, int p2)

p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts

_0xe9ac8466abe484bb

void native.law._0xe9ac8466abe484bb(bool p0, int p1)

Only used in R* SP Scripts
Params: p1 = 0

_0x40851bcc33acd9ab

bool native.law._0x40851bcc33acd9ab(int ped)


_0xf46108c50a22b029

bool native.law._0xf46108c50a22b029()


_0x7803436e68c32b26

void native.law._0x7803436e68c32b26()


_0xc310239acccf5579

void native.law._0xc310239acccf5579()


_0x29cd4896ecb66c12

void native.law._0x29cd4896ecb66c12()


_0xe94b5e938619712e

void native.law._0xe94b5e938619712e()

Seems to disable lawmen guarding behaviors (like during a region lockdown). Must be called every frame.
Only used in R* SP Scripts, mostly used in train_fast_travel_core

_0x7fc667f6ddfbcdcc

int native.law._0x7fc667f6ddfbcdcc(int player)

Only used in R* Script long_update
Returns a value thats being subtracted from GET_GAME_TIMER

_0x9c5bd8c562565ce6

void native.law._0x9c5bd8c562565ce6(ptr int crime_type)


_0xcbfb4951f2e3934c

void native.law._0xcbfb4951f2e3934c(int player, ptr int data)


_set_ped_law_behaviour

void native.law._set_ped_law_behaviour(int ped, int behaviour)

behaviour: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CLawBehavior__Flags

_0x00db0bc05e3faa4e

void native.law._0x00db0bc05e3faa4e(int ped, int bitset)


_0x0c392db374655176

void native.law._0x0c392db374655176(float x, float y, float z, float p3, int item_set)


_0xc687a23e166dcf68

int native.law._0xc687a23e166dcf68(ptr int p0)


_set_dispatch_multiplier_override

void native.law._set_dispatch_multiplier_override(float multiplier)


_0x26934083d3f2579c

bool native.law._0x26934083d3f2579c(int player)


get_player_registered_crime

bool native.law.get_player_registered_crime(int player, int p1, ptr int crime_type)


_0xb527099d1e1eed49

bool native.law._0xb527099d1e1eed49(int player, int p1, ptr int crime_type)


clear_player_past_crimes

void native.law.clear_player_past_crimes(int player)


set_player_arrested_in_region

void native.law.set_player_arrested_in_region(int player, int law_region_hash)


set_player_turned_in_bounty_in_region

void native.law.set_player_turned_in_bounty_in_region(int player, int law_region_hash)


_0xd6c0a8c7c0b2f82c

void native.law._0xd6c0a8c7c0b2f82c(int player, bool p1)


set_law_sense_range_modifier

void native.law.set_law_sense_range_modifier(int player, float range)

Default range is 1.0f

_0x7ef2a2fe38d74456

void native.law._0x7ef2a2fe38d74456(int flag, bool p1)

_SET_DISPATCH_*

_0xc7dc5a0a7df608cb

bool native.law._0xc7dc5a0a7df608cb(int flag)

_GET_DISPATCH_*

set_disable_disturbance_crimes

void native.law.set_disable_disturbance_crimes(int player, bool p1)


set_postpone_disturbance_crimes_during_combat

void native.law.set_postpone_disturbance_crimes_during_combat(int player, bool p1)


_create_guard_zone

void native.law._create_guard_zone(string name)


_remove_guard_zone

void native.law._remove_guard_zone(string name)


_0x9772395cc73e8d1f

void native.law._0x9772395cc73e8d1f(int ped, string name)

Only used in loanshark_miner1 R* Script: name = ANNESBURG_MINES

_disable_guard_zone

void native.law._disable_guard_zone(string name)


_0x0dbaca9c38c9a686

bool native.law._0x0dbaca9c38c9a686(string name)

Only used in sisikapenitentiary R* Script: name = SISIKA
_IS_G* or _IS_H*

_is_guard_ped_investigating

bool native.law._is_guard_ped_investigating(int ped)


_create_guard_zone_for_entity

bool native.law._create_guard_zone_for_entity(string guard_zone_name, int entity, float x, float y, float z)

Returns true when investigation creation was successful

_set_guard_zone_volume_registration_start

void native.law._set_guard_zone_volume_registration_start(string name, int volume)


_set_guard_zone_volume_restricted

void native.law._set_guard_zone_volume_restricted(string name, int volume)


_set_guard_zone_volume_threat

void native.law._set_guard_zone_volume_threat(string name, int volume)


_set_guard_zone_volume_warning

void native.law._set_guard_zone_volume_warning(string name, int volume)


_set_guard_zone_volume_registration_end

void native.law._set_guard_zone_volume_registration_end(string name, int volume)


_set_guard_zone_position

void native.law._set_guard_zone_position(string name, float x, float y, float z)


_set_guard_zone_position_2

void native.law._set_guard_zone_position_2(string name, float x, float y, float z)