Type `BasePlayer' does not contain a definition for `Rename'Solved
(16:44:15) | Error while compiling: Dynasty.cs(30,42): error CS1061: Type `BasePlayer' does not contain a definition for `Rename' and no extension method `Rename' of type `BasePlayer' could be found. Are you missing an assembly reference?


what am I missing to be able to use player.Rename ?

Calling on the following libraries:
using System;
using System.Collections.Generic;
using Oxide.Core;​
Rename is from IPlayer, not BasePlayer. It is a method Oxide provides, not Rust.
Ah, I was using IPlayer, but switched to BasePlayer. Got it, thanks.
Locked automatically