[Release] Disable seat shuffling

yea get this also when sitting in the passenger seat the head animation keeps moving like its trying to switch seats

1 Like

I discovered shuffling in a HVY APC wasn’t quite working right, as I’d shuffle to the gun seat using the game’s shuffle mechanic, and then attempt to shuffle back… Except, I’d have to run the shuffle command, and then also hold the headlight button to trigger the game’s shuffle mechanic in order to get back into the driver’s seat.

I created a function that detects if the player is in a HVY APC or a BF Dune FAV in order to stop the script form running in these vehicles.

function checkOmitList()
--[[
	Check for vehicles that allow shuffling normally
	Hash		Vehicle
	562680400	HVY APC
	1897744184		BF Dune FAV
]]
	local vID --[[ Vehicle ]] =
	GetVehiclePedIsIn(
		GetPlayerPed(-1) --[[ Ped ]], 
		false --[[ boolean ]]
	)
	local cVM --[[ Hash ]] =
	GetEntityModel(
		vID --[[ Entity ]]
	)
	--print("Player is in entity " .. vID .. " which is " .. cVM) --Debug code to find vehicle IDs
	
	if cVM == 562680400 or cVM == 1897744184 then
		return false
	else
		return true
	end
end

I then modified the line that checks if the player is in a vehicle to call this function.

		if IsPedInAnyVehicle(GetPlayerPed(-1), false) and disableShuffle and checkOmitList() then
1 Like

Having issue where people are constantly being kicked out of their vehicle when passengers.

rewrote the script , check the link at top of post

thank you! I’ll add it and credit you