People are able to LOOT ALL on dropbox's and take out items. How can I disable this
Players looting other player's dropboxFixed
I fixed that in this way:
private void OnLootEntity(BasePlayer player, BaseEntity entity)
{
var check = entity.GetComponent<DestroyOnGroundMissing>();
if (check != null && check.enabled == false) return;
if (permission.UserHasPermission(player.UserIDString, permUse) && !(entity is VendingMachine) && !(entity is ShopFront) && !(entity is BigWheelBettingTerminal) && (!(entity is DropBox) || (entity as DropBox).PlayerBehind(player)))
{
UserInterface(player);
}
}also i recommend to block UI in next entities:
"researchtable_static",
"workbench1.static",
"workbench2.static",
"workbench3.static",
"workbench1.deployed",
"workbench2.deployed",
"workbench3.deployed",
"repairbench_static",
"repairbench_deployed",
"researchtable_deployed",
"locker.deployed"
Added the ability to exclude entities by adding their ShortPrefabName to exclusion list in the latest version
Locked automatically