In a first aspect, the indication is received from at least one of the second UE, a base station, or a combination thereof. In a second aspect, alone or in combination with the first aspect, the resource allocation is determined based at least in part on a data structure that maps different resource allocations to corresponding slice identifiers. In a third aspect, alone or in combination with one or more of the first and second aspects, the data structure is pre-configured on the first UE, provisioned for the first UE, or dynamically configured for the first UE based at least in part on an indication received from a base station. In a fourth aspect, alone or in combination with one or more of the first through third aspects, the resource allocation is determined based at least in part on an indication received from a base station. In a fifth aspect, alone or in combination with one or more of the first through fourth aspects, the indication from the base station is received in a radio resource control (RRC) message or a system information block.