{"slug":"AI/BLACKBOARDS","category":"AI","title":"BLACKBOARDS","kind":"markdown","intro":"","body":"## Some Blackboard Values\n\nVisible changes can only be seen with few \"script\" blackboards. It seems Rockstars use blackboards as decorators to check some actions status.\n\n## Example\n\n```lua\n\t-- SET_PED_BLACKBOARD_FLOAT (visible changes only for \"script\" blackboards)\n\t-- to cancel blackboard float use value 0.0\n\t-- last parameter is duration (in frames, -1 = forever)\n\tCitizen.InvokeNative(0x437C08DB4FEBE2BD, PlayerPedId(), \"MetalDetectorDetectionValue\", 1.0, -1)   -- the higher the value, the more metal detector vibrates\n\n\t-- SET_PED_BLACKBOARD_BOOL (visible changes only for \"script\" blackboards)\n\t-- last parameter is duration (in frames, -1 = forever)\n\tCitizen.InvokeNative(0xCB9401F918CB0F75, PlayerPedId(), \"NarrowLedge\", true, 1000)  -- apply \"narrow\" walkstyle for 1000 frames (~10 seconds)\n\n\t-- SET_PED_BLACKBOARD_STRING (visible changes only for \"script\" blackboards)\n\t-- last parameter is duration (in frames, -1 = forever)\n\tCitizen.InvokeNative(0xA762C9D6CF165E0D, PlayerPedId(), \"BodyPartChained\", \"Legs\", 5000)  -- apply \"legschained\" walkstyle for 5000 frames (~50 seconds)\n\n\t-- SET_PED_BLACKBOARD_INT\n\t-- last parameter is duration (in frames, -1 = forever)\n\t-- in this example the native N_0x2e036f0480b8bf02() returns the amount of time elapsed since joining game\n\tCitizen.InvokeNative(0x5F53010C4C3F6BAF, PlayerPedId(), \"prsn_ilo_time\", N_0x2e036f0480b8bf02(), -1)  --\n\n```\n\n<h2>Some known Blackboard Values.</h2>\n\n-Blackboard type | Blackboard section | Blackboard name | Blackboard range (or variants)\n----------- | -------------------------- |---------- | -------\nfloat | script | Cautious | from 0.1 till 1.0\nfloat | script | Stealth | from 0.1 till 1.0\nfloat | script | Bewildered | from 0.1 till 1.0\nfloat | script | MetalDetectorDetectionValue | from 0.1 till 1.0\nfloat | script | Sick | from 0.7 till 1.0\nfloat | script | Stealth | from 0.1 till 1.0\nbool | script | Bewildered |\nbool | script | blockHeadTailAdditives |\nbool | script | CarryBagAndersLeft |\nbool | script | CarryBagAndersRight |\nbool | script | CarryFishingpole |\nbool | script | CarryManure |\nbool | script | Cold_Empty_Stamina |\nbool | script | Cold_Low_Stamina |\nbool | script | Cold_Stamina |\nbool | script | Crafting_SatchelUpgrade |\nbool | script | DoHerdSmack |\nbool | script | DoHerdWhip |\nbool | script | DrunkStumbleActive |\nbool | script | FishingRodInLeftHand |\nbool | script | FishingRodInRightHand |\nbool | script | ForceHandsOnBelt |\nbool | script | FreeRoamSpawn |\nbool | script | GRAYOUT_ITEM_DROP |\nbool | script | GRAYOUT_ITEM_USE |\nbool | script | HandsOnBelt |\nbool | script | Handsup |\nbool | script | in_a_dress |\nbool | script | inInspectionMode |\nbool | script | IsCold |\nbool | script | IsColdFast |\nbool | script | isInspectingGround |\nbool | script | isLowDeadEyeCoreActive |\nbool | script | isLowHealthCoreActive |\nbool | script | isLowStaminaCoreActive |\nbool | script | IsSearching |\nbool | script | IsSeductive |\nbool | script | IsWithinHornetsVolume |\nbool | script | LanternHeldHigh |\nbool | script | MP_Style_Casual |\nbool | script | MP_Style_Crazy |\nbool | script | mp_style_drunk |\nbool | script | MP_Style_EasyRider |\nbool | script | MP_Style_Flamboyant |\nbool | script | MP_Style_Greenhorn |\nbool | script | MP_Style_Gunslinger |\nbool | script | mp_style_inquisitive |\nbool | script | MP_Style_Refined |\nbool | script | MP_Style_SilentType |\nbool | script | MP_Style_Veteran |\nbool | script | NarrowLedge |\nbool | script | odr3_basement |\nbool | script | odr3_outside |\nbool | script | OnFootIntimidateForced |\nbool | script | PickUpManure |\nbool | script | PlayEquipGlovesFidget |\nbool | script | PlayEquipHatFidget |\nbool | script | PlayLeadin |\nbool | script | PlayUnequipGlovesFidget |\nbool | script | PlayUnequipHatFidget |\nbool | script | PutDownManure |\nbool | script | SadPassenger |\nbool | script | SpawnMissionIntro |\nbool | script | Urgent_Look_Back |\nbool | script | Urgent_Look_Left |\nbool | script | UrgentGlances |\nstring | script | BodyPartChained | Legs\nbool |  | BlockInjuredLoco |\nbool |  | DoAFidget |\nbool |  | DoBulletFlinch |\nbool |  | DoLowStarts |\nbool |  | EagleEye |\nbool |  | FoliageActive |\nbool |  | frontpassenger |\nbool |  | HandsOnBelt |\nbool |  | Handsup |\nbool |  | HorseLeadingActive |\nbool |  | InCombat |\nbool |  | IsAiming |\nbool |  | IsAimingMounted |\nbool |  | IsClimbExit |\nbool |  | IsDoingItemInteraction |\nbool |  | IsDrunk |\nbool |  | IsEnteringCover |\nbool |  | IsFocusTarget |\nbool |  | IsInInterior |\nbool |  | isInspecting |\nbool |  | IsLanding |\nbool |  | isLowStaminaCoreActive |\nbool |  | IsOnFire |\nbool |  | IsPlayer |\nbool |  | OnFootIntimidate |\nbool |  | onStairs |\nbool |  | passenger |\nbool |  | PedIsWearingHat |\nbool |  | Rider |\nbool |  | RiderAiming |\nbool |  | RiderBlockIdleVariations |\nbool |  | RiderDoWhip |\nbool |  | RiderIntensityHigh |\nbool |  | RideSideSaddled |\nbool |  | Spooked |\nbool |  | Tracking |\nfloat |  | SurfaceIncline | from -3.2 till 3.14\nfloat |  | Agitation | from 0.1 till 1.0\nfloat |  | BulletFlinchDirection | from -3.2 till 3.14\nfloat |  | cautious | from 0.1 till 1.0\nfloat |  | ClimbHeight | from 0.75 till 3.5\nfloat |  | Drunkness | from 0.1 till 1.0\nfloat |  | Fatigue | from 0.1 till 1.0\nfloat |  | Fear | from 0.1 till 1.0\nfloat |  | FireDistance | from 0.1 till 4.5\nfloat |  | FoliageHeight | from 0.3 till 10.0\nfloat |  | Injury | from 0.001 till 1.0\nfloat |  | ShuntAngle | from -3.1425 till 3.1425\nfloat |  | ShuntForce | from 0.05 till 1.0\nfloat |  | Soak | from 0.1 till 1.0\nfloat |  | Strain | from 0.1 till 1.0\nfloat |  | Temperature | from -50.0 till 1000.0\nfloat |  | Unruliness | from 0.1 till 1.01\nfloat |  | WaterDepth | from 0.1 till 2.0\nfloat |  | WindSpeed | from 1.0 till 100.0\nfloat |  | StaminaCoreValue | from 0.0 till 40.0\nfloat |  | HealthCoreValue | from 0.0 till 40.0\nfloat |  | rain | from 0.1 till 1.0\nbool |  | BLOCK_CAMERA_DRUNK_SLUMP_BEHAVIOUR |\nbool |  | BLOCK_COFFEE_DISCARD_PROMPT |\nbool |  | BLOCK_COFFEE_DRINK_PROMPT |\nbool |  | BLOCK_STEW_DROP_PROMPT |\nbool |  | BLOCK_STEW_EAT_PROMPT |\nbool |  | BOOK_BLOCK_PAGE_NEXT |\nbool |  | BOOK_BLOCK_PAGE_PREV |\nbool |  | DoAFidget |\nbool |  | DoLowStarts |\nbool |  | FreeRoamSpawn |\nbool |  | GENERIC_ALCOHOL_ALLOW_CHUG_B |\nbool |  | GENERIC_ALCOHOL_ALLOW_CHUG_C |\nbool |  | GENERIC_ALCOHOL_BLOCK_AWAY_PROMPT |\nbool |  | GENERIC_ALCOHOL_BLOCK_CHEERS_HI_DISCARD |\nbool |  | GENERIC_ALCOHOL_BLOCK_CHEERS_HI_PUTAWAY |\nbool |  | GENERIC_ALCOHOL_BLOCK_CHEERS_LO |\nbool |  | GENERIC_ALCOHOL_BLOCK_CHUG_A |\nbool |  | GENERIC_ALCOHOL_BLOCK_CHUG_DISCARD |\nbool |  | GENERIC_ALCOHOL_BLOCK_CHUG_PUT_AWAY |\nbool |  | GENERIC_ALCOHOL_BLOCK_DISCARD_PROMPT |\nbool |  | GENERIC_ALCOHOL_BLOCK_PUTAWAY_PROMPT |\nbool |  | GENERIC_BOOK_READ_AVAILABLE |\nbool |  | GENERIC_BOOK_RETURN_AVAILABLE |\nbool |  | GENERIC_BOOK_TAKE_AVAILABLE |\nbool |  | GENERIC_DOCUMENT_FLIP_AVAILABLE |\nbool |  | GENERIC_WEAPON_CLEAN_PROMPT_AVAILABLE |\nbool |  | HIDE_STEW_DROP_PROMPT |\nbool |  | HIDE_STEW_EAT_PROMPT |\nbool |  | InCombatCharging |\nbool |  | inInspectionMode |\nbool |  | isInspectingGround |\nbool |  | isLowDeadEyeCoreActive |\nbool |  | isLowHealthCoreActive |\nbool |  | isLowStaminaCoreActive |\nbool |  | JOURNAL_BLOCK_CHAPTER_NEXT |\nbool |  | JOURNAL_BLOCK_CHAPTER_PREV |\nbool |  | JOURNAL_BLOCK_PAGE_NEXT |\nbool |  | JOURNAL_BLOCK_PAGE_PREV |\nbool |  | Loco::UseActionMode |\nbool |  | MP_CATALOGUE_BLOCK_PAGE_NEXT |\nbool |  | MP_CATALOGUE_BLOCK_PAGE_PREV |\nbool |  | PlayEquipGlovesFidget |\nbool |  | PlayEquipHatFidget |\nbool |  | PlayUnequipGlovesFidget |\nbool |  | PlayUnequipHatFidget |\nbool |  | POILookAround |\nbool |  | POILookDown |\nbool |  | POILookInto |\nbool |  | RequestKneeCrouch |\nbool |  | SHOW_COFFEE_KNEEL_DISCARD_PROMPT |\nbool |  | SideSaddleRider |\nbool |  | SpawnMissionIntro |\nbool |  | UseFacing |\nfloat |  | MetalDetectorDistanceToDigSite |\nstring |  | DecelerationCause | stopping\nstring |  | EmotionalState | CombatMediumIntensity<br>CombatHighIntensity<br>cautious<br>HighIntensitySearch<br>cower<br>panic<br>angry<br>LowIntensitySearch<br>scared<br>IntimidatedOnFeet<br>Curious<br>Nervous<br>itchy<br>sad<br>shocked<br>brave<br>happy\nstring |  | IsAboutToRansackIdleType | ReachInPickup<br>ReachOverPickup\nstring |  | Stance | normal<br>action\nstring |  | StrafeType | Aiming<br>Fishing<br>melee<br>OffsetAiming\nstring |  | typeOfGetUp | front<br>rear\nstring |  | WeatherType | blizzard<br>drizzle<br>groundblizzard<br>highpressure<br>hurricane<br>rain<br>sandstorm<br>shower<br>sleet<br>snow<br>snowlight<br>sunny<br>thunderstorm<br>whiteout\nstring |  | MoodName | MoodAction<br>MoodAgitated<br>MoodAgitatedLow<br>MoodAngry<br>MoodBlizzard<br>MoodBrave<br>MoodCalmHorse<br>MoodCarryLarge<br>MoodCautious<br>MoodCold<br>MoodCombatMedium<br>MoodCombatMild<br>MoodConfused<br>MoodCower<br>MoodCurious<br>MoodDisgust<br>MoodDrunkExtreme<br>MoodDrunkMedium<br>MoodDrunkMild<br>MoodExertionextreme<br>MoodExertionmedium<br>MoodExertionmild<br>MoodExhausted<br>MoodFoliage<br>MoodHappy<br>MoodInjuredExtreme<br>MoodInjuredMedium<br>MoodInjuredmild<br>MoodIntimidated<br>MoodInvestigate<br>MoodLowDeadeye<br>MoodLowHealth<br>MoodLowStamina<br>MoodNervous<br>MoodNormal<br>MoodNormalCanter<br>MoodNormalSick<br>MoodNormalTrot<br>MoodOnFire<br>MoodPanic<br>MoodRiding<br>MoodRidingRelaxed<br>MoodRun<br>MoodSad<br>MoodScared<br>MoodSearchHigh<br>MoodSearchLow<br>MoodSeductive<br>MoodShocked<br>MoodSlide<br>MoodSmug<br>MoodSwamp<br>MoodTired<br>MoodUnderfireHeavy<br>MoodUnderfireMild<br>MoodWater<br>MoodWindExtreme<br>MoodWindMedium<br>MoodWindMild\nint |  | prsn_ilo_time |","tables":[],"sourceUrl":"https://github.com/femga/rdr3_discoveries/tree/477aaaccadb7f0c042286611d9939009636cff12/AI/BLACKBOARDS","rows":[]}