private async Task <int> CreateLocalObject(string name, Vector3 pos) { int hash = API.GetHashKey(name); API.RequestModel((uint)hash); while (!API.HasModelLoaded((uint)hash)) { await Delay(1); } return(API.CreateObject(hash, pos.X, pos.Y, pos.Z, false, true, false)); }