RedM Natives

BLACKBOARDS

CategoryAI
Rows188

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)  --
<h2>Some known Blackboard Values.</h2>
11 matches
#blackboard_typeblackboard_sectionblackboard_nameblackboard_range_or_variantsNote
127boolBLOCK_COFFEE_DISCARD_PROMPT
128boolBLOCK_COFFEE_DRINK_PROMPT
129boolBLOCK_STEW_DROP_PROMPT
130boolBLOCK_STEW_EAT_PROMPT
152boolHIDE_STEW_DROP_PROMPT
153boolHIDE_STEW_EAT_PROMPT
138boolGENERIC_ALCOHOL_BLOCK_AWAY_PROMPT
145boolGENERIC_ALCOHOL_BLOCK_DISCARD_PROMPT
146boolGENERIC_ALCOHOL_BLOCK_PUTAWAY_PROMPT
151boolGENERIC_WEAPON_CLEAN_PROMPT_AVAILABLE
175boolSHOW_COFFEE_KNEEL_DISCARD_PROMPT