Hi everyone. Im makin some minigame in Rust and im interested in select the slot 0 weapond on player respawn... this "work" but weird its like the weapond held but not selected (no utilizable until you unselect with key 1 and select it again) is dificult to explain.
[ChatCommand("held")]
private void held(BasePlayer player){
Item item = player.inventory.containerBelt.GetSlot(0);
if (item.CanBeHeld()){
(item.GetHeldEntity() as HeldEntity)?.SetHeld(true);
}
}can you see in the picture item is selected but no blue color on slot....
Some ideas?
PD.: Sorry for my bad english