BIS_fnc_respawnMenuInventory uses both
disableSerialization and
BIS_fnc_showRespawnMenu, it also needs a unit as a parameter, such as this:
[player] call BIS_fnc_respawnMenuInventory;
Problem is, once it's called, the menu shows up in every respawn, haven't found a way to show it only once somehow.
Here is what I have:
if (hasInterface) then {
[west, "WEST1"] call BIS_fnc_addRespawnInventory;
[player] call BIS_fnc_respawnMenuInventory;
player addEventHandler ["Respawn", {
//Close the respawn menu here somehow
hint "SPECTATOR";
//[] call ace_spectator_fnc_setSpectator;
}];
};
Players still get the loadout selection screen, but when they click "Spawn", they're switched to spectators. Removing the template from description.ext makes it so it doesn't even show up in the first place.