law

Methods

_report_crime

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 };

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

suppress_crime_this_frame

crimeType: see _REPORT_CRIME

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

num_crimes_suppressed

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

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

_0xffebe5aa96bc2e4e

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

_0x15abd5004cad2d99

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

function native.law._0x15abd5004cad2d99(p0: int): void

_0xf611de44aeb36a1d

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

_0x3d2674828a4e6b3c

function native.law._0x3d2674828a4e6b3c(): bool

_0xc5eb2755fa25f1e9

function native.law._0xc5eb2755fa25f1e9(p0: bool): void

get_bounty

function native.law.get_bounty(player: int): int

add_bounty

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

set_bounty

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

clear_bounty

function native.law.clear_bounty(player: int): void

get_wanted_score

function native.law.get_wanted_score(player: int): int

set_wanted_score

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

clear_wanted_score

function native.law.clear_wanted_score(player: int): void

_0x331d349e0380b097

function native.law._0x331d349e0380b097(p0: int): void

_0x292ad61a33a7a485

Only used in R* Script fm_mission_controller CLEAR_WANTED*

function native.law._0x292ad61a33a7a485(): void

_0x07e8b8b20570271c

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

function native.law._0x07e8b8b20570271c(player: int): void

_0x22741652985c84d0

Used in SP only REPORT*

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

_report_player_law_dispatch_response_override

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

_0x9ef07cfbb19a9733

Only used in shoprobberies R* Scripts

function native.law._0x9ef07cfbb19a9733(): bool

_set_law_disabled

function native.law._set_law_disabled(toggle: bool): void

_force_law_on_local_player_immediately

function native.law._force_law_on_local_player_immediately(): void

_set_law_region

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 };

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

_0x5e6f375ca101c108

Only used in R* SP Scripts

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

_set_law_rbs_volume

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

is_law_incident_active

function native.law.is_law_incident_active(player: int): bool

_0x148e7ac8141c9e64

function native.law._0x148e7ac8141c9e64(player: int): int

_0xedfc6c1fd1c964f5

_SET_C* - _SET_D*

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

_law_witness_response_task

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

_0x018f30d762e62df8

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

_0x318f0f9a4426cfa2

Only used in R* SP Script av_amb_camp_robbery

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

_0x95878b13e272ef1f

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

_add_witness_response

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

_0xd7494ded50c6ef52

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

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

are_witnesses_active

function native.law.are_witnesses_active(player: int): bool

_are_witnesses_pending

function native.law._are_witnesses_pending(player: int): bool

_are_investigators_active

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

_0x522f74636df10201

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

_0xda1a9adc4e3d4b16

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

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

_enable_dispatch_law

function native.law._enable_dispatch_law(toggle: bool): void

_enable_dispatch_law_2

function native.law._enable_dispatch_law_2(toggle: bool): void

_are_any_law_peds_investigating

Only used in rcm_homerob00 R* Script

function native.law._are_any_law_peds_investigating(): bool

_are_law_peds_enabled_for_train

Only used in trainrobbery_ambient R* Script

function native.law._are_law_peds_enabled_for_train(): bool

_0x82f11e1296996574

Only used in rcm_gunslinger1_1 R* Script: p0 = 0

function native.law._0x82f11e1296996574(p0: int): void

_0x3852237a3d9df145

function native.law._0x3852237a3d9df145(p0: int): void

_0x0eaf918f751f27ba

function native.law._0x0eaf918f751f27ba(ped: int): bool

_0xc0df161950fb101e

Only used in rcm_serial_killer1 R* Script

function native.law._0xc0df161950fb101e(ped: int): bool

_0xe4d6e45f491a66cb

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

_0xe9eb79cbf9c0f58a

Returns p1 value for 0xE4D6E45F491A66CB

function native.law._0xe9eb79cbf9c0f58a(player: int): int

_0x21213b833ef4dae7

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

_0x61b98367d93f012f

function native.law._0x61b98367d93f012f(player: int): void

_0x6abc50979655bee7

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

_0x390710d2dafa6bff

_CLEAR*

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

_get_crime_bounty_amount_by_type

Returns bounty (increment) value

function native.law._get_crime_bounty_amount_by_type(crime_type: int): int

_0xdaefdfdb2aeece37

crimeType: see _REPORT_CRIME

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

_get_hud_player_crime_type

See _REPORT_CRIME

function native.law._get_hud_player_crime_type(player: int): int

_0xe083beda81709891

function native.law._0xe083beda81709891(player: int): int

_0x89e005b1662f6e48

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

_0x3738b784ddd35cc6

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

_0x0bdfebcf40a5f7e3

Only used in net_fetch R* Script

function native.law._0x0bdfebcf40a5f7e3(crime_type: int): int

_set_custom_law_dispatch_response

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

function native.law._set_custom_law_dispatch_response(dispatch_response_hash: int): void

_create_law_dispatch_response_for_coords

dispatchResponseHash: see common/data/dispatchresponses/..

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

_set_bounty_hunter_pursuit_cleared

Force clears local player's wanted level

function native.law._set_bounty_hunter_pursuit_cleared(): void

_0xbd944a3d36e992de

Called together with REPORT_POLICE_SPOTTED_PLAYER

function native.law._0xbd944a3d36e992de(): void

_0x987be590fb9d41e5

function native.law._0x987be590fb9d41e5(p0: bool): void

_0xdcf12b89624aac96

function native.law._0xdcf12b89624aac96(p0: bool): void

_0xddce8e960d1de240

function native.law._0xddce8e960d1de240(p0: bool): void

_0xdea083c16bb91345

function native.law._0xdea083c16bb91345(): void

_0x9c8a2bf37e966464

Only used in act_bankrobbery01 R* Script

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

_0x9d5c9a5a3321b128

function native.law._0x9d5c9a5a3321b128(player: int): bool

_0x0f230de0ddbe3649

function native.law._0x0f230de0ddbe3649(player: int): bool

_0x9945a3e2528a02e8

function native.law._0x9945a3e2528a02e8(player: int): bool

_get_time_since_last_seen_by_law

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

function native.law._get_time_since_last_seen_by_law(player: int): float

_0x9b4c564bfa7cff37

function native.law._0x9b4c564bfa7cff37(p0: float): void

_set_allow_disabled_law_responses

function native.law._set_allow_disabled_law_responses(toggle: bool): void

reset_wanted_for_new_incident

function native.law.reset_wanted_for_new_incident(player: int): void

_0x856ce8fde2416602

function native.law._0x856ce8fde2416602(ped: int): bool

_0x7351da734f989f4e

Only used in shoprobberies

function native.law._0x7351da734f989f4e(entity: int): bool

_get_bounty_hunter_global_cooldown

p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts

function native.law._get_bounty_hunter_global_cooldown(p0: int): int

_set_bounty_hunter_global_cooldown

p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts

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

_0x2001687f9562fd9d

Only used in resapwn_dump_body R* Script

function native.law._0x2001687f9562fd9d(p0: int): void

_pause_bounty_hunter_cooldown

p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts

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

_0xe9ac8466abe484bb

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

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

_0x40851bcc33acd9ab

function native.law._0x40851bcc33acd9ab(ped: int): bool

_0xf46108c50a22b029

function native.law._0xf46108c50a22b029(): bool

_0x7803436e68c32b26

function native.law._0x7803436e68c32b26(): void

_0xc310239acccf5579

function native.law._0xc310239acccf5579(): void

_0x29cd4896ecb66c12

function native.law._0x29cd4896ecb66c12(): void

_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

function native.law._0xe94b5e938619712e(): void

_0x7fc667f6ddfbcdcc

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

function native.law._0x7fc667f6ddfbcdcc(player: int): int

_0x9c5bd8c562565ce6

function native.law._0x9c5bd8c562565ce6(crime_type: ptr int): void

_0xcbfb4951f2e3934c

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

_set_ped_law_behaviour

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

_0x00db0bc05e3faa4e

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

_0x0c392db374655176

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

_0xc687a23e166dcf68

function native.law._0xc687a23e166dcf68(p0: ptr int): int

_set_dispatch_multiplier_override

function native.law._set_dispatch_multiplier_override(multiplier: float): void

_0x26934083d3f2579c

function native.law._0x26934083d3f2579c(player: int): bool

get_player_registered_crime

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

_0xb527099d1e1eed49

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

clear_player_past_crimes

function native.law.clear_player_past_crimes(player: int): void

set_player_arrested_in_region

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

set_player_turned_in_bounty_in_region

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

_0xd6c0a8c7c0b2f82c

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

set_law_sense_range_modifier

Default range is 1.0f

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

_0x7ef2a2fe38d74456

SET_DISPATCH*

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

_0xc7dc5a0a7df608cb

GET_DISPATCH*

function native.law._0xc7dc5a0a7df608cb(flag: int): bool

set_disable_disturbance_crimes

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

set_postpone_disturbance_crimes_during_combat

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

_create_guard_zone

function native.law._create_guard_zone(name: string): void

_remove_guard_zone

function native.law._remove_guard_zone(name: string): void

_0x9772395cc73e8d1f

Only used in loanshark_miner1 R* Script: name = ANNESBURG_MINES

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

_disable_guard_zone

function native.law._disable_guard_zone(name: string): void

_0x0dbaca9c38c9a686

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

function native.law._0x0dbaca9c38c9a686(name: string): bool

_is_guard_ped_investigating

function native.law._is_guard_ped_investigating(ped: int): bool

_create_guard_zone_for_entity

Returns true when investigation creation was successful

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

_set_guard_zone_volume_registration_start

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

_set_guard_zone_volume_restricted

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

_set_guard_zone_volume_threat

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

_set_guard_zone_volume_warning

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

_set_guard_zone_volume_registration_end

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

_set_guard_zone_position

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

_set_guard_zone_position_2

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