BLACKBOARDS
Some Blackboard Values
Visible changes can only be seen with few "script" blackboards. It seems Rockstars use blackboards as decorators to check some actions status.
Example
-- SET_PED_BLACKBOARD_FLOAT (visible changes only for "script" blackboards)
-- to cancel blackboard float use value 0.0
-- last parameter is duration (in frames, -1 = forever)
Citizen.InvokeNative(0x437C08DB4FEBE2BD, PlayerPedId(), "MetalDetectorDetectionValue", 1.0, -1) -- the higher the value, the more metal detector vibrates
-- SET_PED_BLACKBOARD_BOOL (visible changes only for "script" blackboards)
-- last parameter is duration (in frames, -1 = forever)
Citizen.InvokeNative(0xCB9401F918CB0F75, PlayerPedId(), "NarrowLedge", true, 1000) -- apply "narrow" walkstyle for 1000 frames (~10 seconds)
-- SET_PED_BLACKBOARD_STRING (visible changes only for "script" blackboards)
-- last parameter is duration (in frames, -1 = forever)
Citizen.InvokeNative(0xA762C9D6CF165E0D, PlayerPedId(), "BodyPartChained", "Legs", 5000) -- apply "legschained" walkstyle for 5000 frames (~50 seconds)
-- SET_PED_BLACKBOARD_INT
-- last parameter is duration (in frames, -1 = forever)
-- in this example the native N_0x2e036f0480b8bf02() returns the amount of time elapsed since joining game
Citizen.InvokeNative(0x5F53010C4C3F6BAF, PlayerPedId(), "prsn_ilo_time", N_0x2e036f0480b8bf02(), -1) --| # | blackboard_type | blackboard_section | blackboard_name | blackboard_range_or_variants | Note |
|---|---|---|---|---|---|
| 127 | bool | BLOCK_COFFEE_DISCARD_PROMPT | |||
| 128 | bool | BLOCK_COFFEE_DRINK_PROMPT | |||
| 129 | bool | BLOCK_STEW_DROP_PROMPT | |||
| 130 | bool | BLOCK_STEW_EAT_PROMPT | |||
| 152 | bool | HIDE_STEW_DROP_PROMPT | |||
| 153 | bool | HIDE_STEW_EAT_PROMPT | |||
| 138 | bool | GENERIC_ALCOHOL_BLOCK_AWAY_PROMPT | |||
| 145 | bool | GENERIC_ALCOHOL_BLOCK_DISCARD_PROMPT | |||
| 146 | bool | GENERIC_ALCOHOL_BLOCK_PUTAWAY_PROMPT | |||
| 151 | bool | GENERIC_WEAPON_CLEAN_PROMPT_AVAILABLE | |||
| 175 | bool | SHOW_COFFEE_KNEEL_DISCARD_PROMPT |