When player spawn, then they have hoodie in equip and player mustn't take off or move it. How I can do it?
Solved Need help with items in containerWear
Discussion in 'Rust Development' started by Kumbls, Jun 11, 2018.
-
Removed answer as it was believed to be a bad programming encouragement.
-
1. Create Item - Hoodie
2. Find player (OnPlayerSpawn, or same)
3. Move item to player's container wear
4. " mustn't take off or move it" - there are slot option to block it (i can be wrong) -
@Kumbls some example
Code:var hoodie = ItemManager.CreateByName("hoodie", 1); player.inventory.GiveItem(hoodie, player.inventory.containerWear); player.inventory.containerWear.SetFlag(ItemContainer.Flag.IsLocked, true);