# Ped commands for selecting anim variations

Reference list from femga/rdr3_discoveries — category **animations**. Source: https://github.com/femga/rdr3_discoveries/blob/477aaaccadb7f0c042286611d9939009636cff12/animations/scenarios/ped_commands_for_selecting_anim_variations.lua

```
 These are commands for activating clips variation for enter, base or exit conditional anims within some scenario.
 
 
 Citizen.CreateThread(function()
 	while true do
  		Citizen.Wait(0)
  		if Citizen.InvokeNative(0x91AEF906BCA88877,0, 0x17BEC168) then   -- pressed E
 			-- TASK_START_SCENARIO_IN_PLACE_HASH with conditional anim PROP_HUMAN_SEAT_CHAIR_GENERIC_MALE_A. Works for male player peds:
 			Citizen.InvokeNative(0x524B54361229154F, PlayerPedId(), GetHashKey("PROP_HUMAN_SEAT_CHAIR"), 0, 1, GetHashKey("PROP_HUMAN_SEAT_CHAIR_GENERIC_MALE_A"), -1.0, 0)
 		end
 		if Citizen.InvokeNative(0x91AEF906BCA88877,0, 0x956C2A0E) then   -- pressed R
 			local ped_command_hash=GetHashKey("EAFOR_A_L_ANGRY")  -- -- to play angry exit animation to the left side or GetHashKey(""EAFOR_A_R_ANGRY") to play angry exit animation to the right side
 			local ped_command_hash_activation_duration=50.0   -- 50 seconds
 			-- _ACTIVATE_PED_COMMAND_HASH (as result, if ped EXITS scenario, it plays animations activated by ped command hash "EAFOR_A_L_ANGRY")
 			Citizen.InvokeNative(0xD65FDC686A031C83, PlayerPedId(), ped_command_hash, ped_command_hash_activation_duration) 
 			 -- _FORCE_SCENARIO_TRANSITION:
 			Citizen.InvokeNative(0x6D07B371E9439019, PlayerPedId() )
			-- CLEAR_PED_TASKS (as result we force ped to properly exit scenario and play animations activated by ped command hash EAFOR_A_L_ANGRY)
			Citizen.InvokeNative(0xE1EF3C1216AFF2CD, PlayerPedId(), 0, 0)
 		end
 	end
 end)
 local ped_commands = {
 	{conditional_anim_name, anim_variations_type, ped_command_hash,},
 }
```

3 rows in 1 table(s): `ped_command_hashes_for_selecting_anim_variations` (key, value).

Search rows: https://natives.borderlinerp.com/api/v1/reference/search?q=…&doc=animations%2Fscenarios%2Fped_commands_for_selecting_anim_variations

| key | value | note |
| --- | --- | --- |
| conditional_anim_name | EA_WORLD_HUMAN_TREE_CHOP_NEW_WORKING_PRE_SWING |  |
| anim_variations_type | ExitAnim |  |
| ped_command_hash | EXIT_TREE_FALL |  |

