RedM Natives

Scenario transitions

Notes from the author
 These are commands for transitioning from one conditional anim to another 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 WORLD_PLAYER_MOONSHINE_CUSTOMER_SOBER_MALE_A. Works for male player peds:
 			Citizen.InvokeNative(0x524B54361229154F, PlayerPedId(), GetHashKey("WORLD_PLAYER_MOONSHINE_CUSTOMER"), 0, 1, GetHashKey("WORLD_PLAYER_MOONSHINE_CUSTOMER_SOBER_MALE_A"), -1.0, 0)
 		end
 		if Citizen.InvokeNative(0x91AEF906BCA88877,0, 0x956C2A0E) then   -- pressed R
 			local ped_command_hash=GetHashKey("ORDER_DRINK")
 			local ped_command_hash_activation_duration=5.0   -- 5 seconds
 			-- _ACTIVATE_PED_COMMAND_HASH (as result, ped plays animation for ORDER_DRINK while ped command hash is active)
 			Citizen.InvokeNative(0xD65FDC686A031C83, PlayerPedId(), ped_command_hash, ped_command_hash_activation_duration) 
 			 -- _FORCE_SCENARIO_TRANSITION:
 			Citizen.InvokeNative(0x6D07B371E9439019, PlayerPedId() ) 
 		end
 	end
 end)
 local ped_commands = {
 	{ConditionalAnimTransition, ped_command_hash, FromConditionalAnims, TransitionToConditionalAnimsList,},
 }
1,305 rows
#transitionped_commandfromtoNote
1301WORLD_PLAYER_MP_STEW_POT_DONATION_MALE__TRANSSTEWPOT_ACTIONWORLD_PLAYER_MP_STEW_POT_DONATION_MALEWORLD_PLAYER_MP_STEW_POT_DONATION_MALE
1302WORLD_PLAYER_SLEEP_BEDROLL_ARTHUR__TRANS__CRAFTING_ARTHURTRANS_USE_ITEMWORLD_PLAYER_SLEEP_BEDROLL_ARTHURWORLD_PLAYER_SLEEP_BEDROLL_CRAFTING_ARTHUR
1303WORLD_PLAYER_SLEEP_BEDROLL_ARTHUR__TRANS__PROP_PLAYER_SLEEP_TENT_MALE_ARESTING_TRANS_SLEEP_W_HATWORLD_PLAYER_SLEEP_BEDROLL_ARTHURPROP_PLAYER_SLEEP_TENT_MALE_A
1304WORLD_PLAYER_SLEEP_BEDROLL_ARTHUR__TRANS__PROP_PLAYER_SLEEP_TENT_MALE_A_V2RESTING_TRANS_SLEEP_W_HATWORLD_PLAYER_SLEEP_BEDROLL_ARTHURPROP_PLAYER_SLEEP_TENT_MALE_A
1305WORLD_PLAYER_SLEEP_BEDROLL_CRAFTING_ARTHUR__TRANS__ARTHURTRANS_STOP_USE_ITEMWORLD_PLAYER_SLEEP_BEDROLL_CRAFTING_ARTHURWORLD_PLAYER_SLEEP_BEDROLL_ARTHUR