import type { eCrimeType } from '../enums/eCrimeType'; import type { Entity } from '../classes/Entity'; import type { ItemSet } from '../classes/ItemSet'; import type { Ped } from '../classes/Ped'; import type { Player } from '../classes/Player'; import type { Volume } from '../classes/Volume'; import { Vector3 } from '../types/Vector3'; import { int, float } from '../types/NativeAliases'; export declare class Law { /** * 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 * }; * * @param player * @param lawRegionHash * @param stateHash */ static setLawRegion(player: Player, lawRegionHash: string | number, stateHash: string | number): void; /** * @param toggle */ static setAllowDisabledLawResponses(toggle: boolean): void; /** * @param p0 */ static N_0xDCF12B89624AAC96(p0: boolean): void; /** * Only used in resapwn_dump_body R* Script * * @param p0 */ static N_0x2001687F9562FD9D(p0: any): void; /** * Note: This native is only used in multiplayer scripts * dispatchResponseHash: see update1/common/data/dispatchresponses/.. * * @param dispatchResponseHash */ static setCustomLawDispatchResponse(dispatchResponseHash: string | number): void; /** * _CLEAR* * * @param player * @param p1 */ static N_0x390710D2DAFA6BFF(player: Player, p1: boolean): void; /** * @param player * @returns */ static N_0xE083BEDA81709891(player: Player): int; /** * @param player * @returns */ static getBounty(player: Player): int; /** * Force clears local player's wanted level */ static setBountyHunterPursuitCleared(): void; /** * Only used in R* Script fm_mission_controller * *CLEAR_WANTED** */ static N_0x292AD61A33A7A485(): void; /** * Only used in shoprobberies * * @param entity * @returns */ static N_0x7351DA734F989F4E(entity: Entity): boolean; /** * @param player */ static clearWantedScore(player: Player): void; /** * Default range is 1.0f * * @param player * @param range */ static setLawSenseRangeModifier(player: Player, range: float): void; /** * @param name * @param volume */ static setGuardZoneVolumeWarning(name: string, volume: Volume): void; /** * Only used in rcm_gunslinger1_1 R* Script: p0 = 0 * * @param p0 */ static N_0x82F11E1296996574(p0: int): void; /** * Used in SP only * *REPORT** * * @param player * @param lawRegionHash */ static N_0x22741652985C84D0(player: Player, lawRegionHash: string | number): void; /** * @param player * @param itemValueAmount */ static addBounty(player: Player, itemValueAmount: int): void; /** * @param player * @returns */ static N_0x9D5C9A5A3321B128(player: Player): boolean; /** * @param player * @param p2 * @returns crimeType: Refer to {@link eCrimeType} */ static N_0x6ABC50979655BEE7(player: Player, p2: any): number; /** * @param ped * @returns */ static N_0x856CE8FDE2416602(ped: Ped): boolean; /** * @param player * @param amount */ static setBounty(player: Player, amount: int): void; /** * @returns p0 */ static N_0xC687A23E166DCF68(): [any, number]; /** * Only used in sisikapenitentiary R* Script: name = SISIKA * _IS_G* or _IS_H* * * @param name * @returns */ static N_0x0DBACA9C38C9A686(name: string): boolean; /** * Only used in net_fetch R* Script * * @param crimeType Refer to {@link eCrimeType} * @returns */ static N_0x0BDFEBCF40A5F7E3(crimeType: eCrimeType): int; /** * @param player * @param lawRegionHash */ static setPlayerArrestedInRegion(player: Player, lawRegionHash: string | number): void; /** * behaviour: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CLawBehavior__Flags * * @param ped * @param behaviour */ static setPedLawBehaviour(ped: Ped, behaviour: int): void; /** * @param player * @returns */ static N_0x0F230DE0DDBE3649(player: Player): boolean; /** * @param player */ static resetWantedForNewIncident(player: Player): void; /** * _SET_C* - _SET_D* * * @param player * @param crimeType Refer to {@link eCrimeType} * @param bounty * @param p3 * @param p4 * @param p5 * @param p6 * @param p7 * @param p8 */ static N_0xEDFC6C1FD1C964F5(player: Player, crimeType: eCrimeType, bounty: int, p3: float, p4: float, p5: boolean, p6: float, p7: float, p8: any): void; /** * @param player * @param dispatchResponseHash */ static reportPlayerLawDispatchResponseOverride(player: Player, dispatchResponseHash: string | number): void; /** * @param player * @returns */ static areWitnessesActive(player: Player): any; /** * @param p0 */ static N_0x331D349E0380B097(p0: any): void; static N_0xDEA083C16BB91345(): void; /** * @param player * @param p1 * @param p2 * @returns */ static N_0x89E005B1662F6E48(player: Player, p1: int, p2: int): boolean; /** * @param multiplier */ static setDispatchMultiplierOverride(multiplier: float): void; /** * @param player * @param p1 */ static setLawRbsVolume(player: Player, p1: string | number): void; /** * Only used in loanshark_miner1 R* Script: name = ANNESBURG_MINES * * @param ped * @param name */ static N_0x9772395CC73E8D1F(ped: Ped, name: string): void; /** * @param name * @param pos */ static setGuardZonePosition2(name: string, pos: Vector3): void; /** * Only used in trainrobbery_ambient R* Script * * @returns */ static areLawPedsEnabledForTrain(): any; /** * Returns p1 value for 0xE4D6E45F491A66CB * * @param player * @returns */ static N_0xE9EB79CBF9C0F58A(player: Player): int; /** * Called together with REPORT_POLICE_SPOTTED_PLAYER */ static N_0xBD944A3D36E992DE(): void; /** * @param toggle */ static enableDispatchLaw2(toggle: boolean): void; /** * 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 */ static N_0xE94B5E938619712E(): void; /** * Only used in R* SP Scripts * Params: p1 = 0 * * @param p0 * @param p1 */ static N_0xE9AC8466ABE484BB(p0: boolean, p1: any): void; /** * @param player * @returns */ static N_0x26934083D3F2579C(player: Player): boolean; /** * @param name * @param volume */ static setGuardZoneVolumeRestricted(name: string, volume: Volume): void; /** * @param player * @returns Refer to {@link eCrimeType} */ static getHudPlayerCrimeType(player: Player): number; /** * @param name */ static createGuardZone(name: string): void; /** * @param p0 */ static N_0x987BE590FB9D41E5(p0: boolean): void; /** * @param player * @returns */ static isLawIncidentActive(player: Player): boolean; /** * @param p0 */ static N_0x3852237A3D9DF145(p0: int): void; static N_0x29CD4896ECB66C12(): void; /** * @param toggle */ static enableDispatchLaw(toggle: boolean): void; /** * @param player * @param p1 */ static setPostponeDisturbanceCrimesDuringCombat(player: Player, p1: boolean): void; /** * @param player * @param p1 * @returns crimeType: Refer to {@link eCrimeType} */ static N_0xB527099D1E1EED49(player: Player, p1: int): [boolean, number]; /** * Only used in rcm_serial_killer1 R* Script * * @param ped * @returns */ static N_0xC0DF161950FB101E(ped: Ped): boolean; /** * @param crimeType Refer to {@link eCrimeType} * @param p1 * @returns */ static N_0xDAEFDFDB2AEECE37(crimeType: eCrimeType, p1: any): int; /** * Only used in R* SP Scripts * Params: p1 = true, p2 = false * * @param itemSet * @param p1 * @param p2 */ static N_0xDA1A9ADC4E3D4B16(itemSet: ItemSet, p1: boolean, p2: boolean): void; /** * @param player * @param p1 * @param p2 * @returns */ static N_0x3738B784DDD35CC6(player: Player, p1: int, p2: int): boolean; /** * *SET_DISPATCH** * * @param flag * @param p1 */ static N_0x7EF2A2FE38D74456(flag: int, p1: boolean): void; /** * @param player * @returns data */ static N_0xCBFB4951F2E3934C(player: Player): number; /** * @param player * @param p1 */ static setDisableDisturbanceCrimes(player: Player, p1: boolean): void; /** * @param player * @param crimeType Refer to {@link eCrimeType} * @param p2 * @param p3 * @param p4 */ static suppressCrimeThisFrame(player: Player, crimeType: eCrimeType, p2: int, p3: int, p4: int): void; /** * @param player * @param crimeType Refer to {@link eCrimeType} * @param bounty * @param entity * @param isKnownSuspect */ static reportCrime(player: Player, crimeType: eCrimeType, bounty: int, entity: Entity, isKnownSuspect: boolean): void; /** * p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts * * @param p0 * @returns */ static getBountyHunterGlobalCooldown(p0: string | number): int; /** * p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts * * @param p0 * @param p1 */ static setBountyHunterGlobalCooldown(p0: string | number, p1: int): void; /** * Only used in R* SP Scripts * * @param player * @param p1 */ static N_0x5E6F375CA101C108(player: Player, p1: boolean): void; /** * @param crimeType Refer to {@link eCrimeType} * @param p1 */ static N_0xF611DE44AEB36A1D(crimeType: eCrimeType, p1: boolean): void; /** * @param pedGroup1 * @param ped * @param pedGroup2 * @param pos * @param crimeType * @returns */ static witnessResponseTask(pedGroup1: Ped, ped: Ped, pedGroup2: Ped, pos: Vector3, crimeType: eCrimeType): any; /** * @param ped * @returns */ static isGuardPedInvestigating(ped: Ped): boolean; /** * @param name * @param volume */ static setGuardZoneVolumeRegistrationStart(name: string, volume: Volume): void; /** * @param player * @returns */ static N_0x9945A3E2528A02E8(player: Player): boolean; /** * @param player */ static clearPlayerPastCrimes(player: Player): void; /** * @param player * @returns */ static areWitnessesPending(player: Player): any; /** * Returns true when investigation creation was successful * * @param guardZoneName * @param entity * @param pos * @returns */ static createGuardZoneForEntity(guardZoneName: string, entity: Entity, pos: Vector3): boolean; /** * Returns the amount of time (probably in game minutes) since last seen by the law / left the wanted radius * * @param player * @returns */ static getTimeSinceLastSeenByLaw(player: Player): float; /** * Params: p0 either 0, 1 or -1 in R* Scripts * Set to 0 called together with _SUPPRESS_CRIME * * @param p0 */ static N_0x15ABD5004CAD2D99(p0: int): void; /** * @param toggle */ static setLawDisabled(toggle: boolean): void; /** * @param player * @param itemSet */ static N_0x522F74636DF10201(player: Player, itemSet: ItemSet): void; /** * @param player */ static clearBounty(player: Player): void; /** * *GET_DISPATCH** * * @param flag * @returns */ static N_0xC7DC5A0A7DF608CB(flag: int): boolean; /** * Only used in shoprobberies R* Scripts * * @returns */ static N_0x9EF07CFBB19A9733(): boolean; static forceLawOnLocalPlayerImmediately(): void; /** * Returns amount of suppressed crimes to be used later in the function MPINTRO_CRIME_MONITOR_MAINTAIN * * @param player * @param crimeType Refer to {@link eCrimeType} * @returns */ static numCrimesSuppressed(player: Player, crimeType: eCrimeType): int; /** * @param name */ static disableGuardZone(name: string): void; /** * @param player */ static N_0x61B98367D93F012F(player: Player): void; /** * @param enable */ static setCantLoseLawThisResponse(enable: boolean): void; /** * @param player * @param intensity */ static setWantedScore(player: Player, intensity: int): void; /** * dispatchResponseHash: see common/data/dispatchresponses/.. * * @param pos * @param dispatchResponseHash * @returns */ static createLawDispatchResponseForCoords(pos: Vector3, dispatchResponseHash: string | number): any; /** * @param ped * @param crimeType Refer to {@link eCrimeType} * @param p2 * @returns */ static N_0xFFEBE5AA96BC2E4E(ped: Ped, crimeType: eCrimeType, p2: boolean): any; /** * @param player * @param p1 */ static N_0xD6C0A8C7C0B2F82C(player: Player, p1: boolean): void; /** * @param name * @param volume */ static setGuardZoneVolumeThreat(name: string, volume: Volume): void; /** * @param name * @param pos */ static setGuardZonePosition(name: string, pos: Vector3): void; /** * Only used in R* SP Scripts * Params: p2 either 1 or 2 * * @param player * @param crimeType Refer to {@link eCrimeType} * @param p2 */ static N_0xD7494DED50C6EF52(player: Player, crimeType: eCrimeType, p2: int): void; /** * @param p0 */ static N_0xC5EB2755FA25F1E9(p0: boolean): void; /** * @param name */ static removeGuardZone(name: string): void; /** * @param p0 */ static N_0x9B4C564BFA7CFF37(p0: float): void; /** * Only used in R* SP Script av_amb_camp_robbery * * @param ped * @returns p1 */ static N_0x318F0F9A4426CFA2(ped: Ped): [any, number]; /** * @param player * @param areInvestigatorsActive * @param p2 * @returns */ static areInvestigatorsActive(player: Player, areInvestigatorsActive: boolean, p2: any): any; /** * Used in SP only, called together with _SET_BOUNTY_HUNTER_PURSUIT_CLEARED & CLEAR_WANTED_SCORE * *REPORT** * * @param player */ static N_0x07E8B8B20570271C(player: Player): void; /** * @param ped * @returns */ static N_0x0EAF918F751F27BA(ped: Ped): boolean; /** * @param player * @param ped * @returns outCoords */ static N_0x21213B833EF4DAE7(player: Player, ped: Ped): Vector3; /** * @param pos * @param p3 * @param itemSet */ static N_0x0C392DB374655176(pos: Vector3, p3: float, itemSet: ItemSet): void; /** * Only used in R* Script long_update * Returns a value thats being subtracted from GET_GAME_TIMER * * @param player * @returns */ static N_0x7FC667F6DDFBCDCC(player: Player): int; /** * @param player * @param p1 * @returns crimeType: Refer to {@link eCrimeType} */ static getPlayerRegisteredCrime(player: Player, p1: int): [any, number]; /** * @param name * @param volume */ static setGuardZoneVolumeRegistrationEnd(name: string, volume: Volume): void; /** * @returns */ static N_0xF46108C50A22B029(): boolean; /** * @param player * @param lawRegionHash */ static setPlayerTurnedInBountyInRegion(player: Player, lawRegionHash: string | number): void; static N_0x7803436E68C32B26(): void; /** * Returns bounty (increment) value * * @param crimeType Refer to {@link eCrimeType} * @returns */ static getCrimeBountyAmountByType(crimeType: eCrimeType): int; /** * @returns crimeType: Refer to {@link eCrimeType} */ static N_0x9C5BD8C562565CE6(): number; /** * @param player * @param p1 * @returns */ static N_0xE4D6E45F491A66CB(player: Player, p1: int): any; /** * @param player * @param crimeType Refer to {@link eCrimeType} * @param pedGroup */ static addWitnessResponse(player: Player, crimeType: eCrimeType, pedGroup: Ped): void; /** * @returns */ static N_0x3D2674828A4E6B3C(): boolean; /** * @param ped * @returns p1 */ static N_0x018F30D762E62DF8(ped: Ped): [any, number]; /** * @param player * @returns */ static N_0x148E7AC8141C9E64(player: Player): number; /** * Only used in rcm_homerob00 R* Script * * @returns */ static areAnyLawPedsInvestigating(): boolean; /** * @param entity * @param ped * @param p2 * @param pos * @param crimeType Refer to {@link eCrimeType} * @returns */ static N_0x95878B13E272EF1F(entity: Entity, ped: Ped, p2: boolean, pos: Vector3, crimeType: eCrimeType): any; /** * Only used in act_bankrobbery01 R* Script * * @param player * @param itemSet */ static N_0x9C8A2BF37E966464(player: Player, itemSet: ItemSet): void; /** * p0 is always BOUNTYHUNTERSGLOBALCOOLDOWN in R* scripts * * @param p0 * @param p1 * @param p2 */ static pauseBountyHunterCooldown(p0: string | number, p1: boolean, p2: any): void; static N_0xC310239ACCCF5579(): void; /** * @param ped * @returns */ static N_0x40851BCC33ACD9AB(ped: Ped): boolean; /** * @param player * @returns */ static getWantedScore(player: Player): int; /** * @param ped * @param bitset */ static N_0x00DB0BC05E3FAA4E(ped: Ped, bitset: int): void; } //# sourceMappingURL=Law.d.ts.map