What can i say ... ?

FANTASTIC Job DEV, one of usefull PlugINs here :) All works fine ... :)

Thank you for the kind feedback, glad you're finding the plugin useful :)

yes, BUT i have a question: is it possible, that user can change the number ?

Unfortunately no, you can't change the phone number because both Rust and the plugin use the number to identify the phones. If you want, if you were to pick up the phone and replace it, it will give you new randomly generated number, but there is no way to change it to what you want.

You can always register the phone in the directory though and name it what you want!

ok, thank u for quick answer and again: great job, one of best plugins here :)

This is great... but what it needs now is an interface to an Asterisk server to make PSTN calls :D

QdU4CZ1RWJZ22FA.png NickPhaxveyon

yes, BUT i have a question: is it possible, that user can change the number ?

I've just figured this out, you can actually change the number on initialization of the mobile. I've done this by getting the MobilePhone class from the item.

bool CanEquipItem(PlayerInventory inventory, Item item, int targetPos)
        {
            Puts("CanEquipItem works!");
            Puts("Item is " + item.ToString());

            if (item.ToString().Contains("mobilephone")) {
                Puts("Someone picked up a mobile phone!");
                var mobile = (MobilePhone) item.GetHeldEntity();
                Puts(mobile.Controller.PhoneNumber.ToString());
                mobile.Controller.PhoneNumber = 69696969;
            }

            return true;
        }

Obviously you should change this code because it will set everyone who picks up a mobile that number, but you get the point, it is possible without breaking anything. So I'd recommend making a plugin where the user can set their own number and it will just set on whatever mobile they pick up. If you don't want that, each mobile has a UID so you don't accidently overwrite other people's phones.