static int IsFriend(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); FriendData obj = (FriendData)LuaScriptMgr.GetNetObjectSelf(L, 1, "FriendData"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); bool o = obj.IsFriend(arg0); LuaScriptMgr.Push(L, o); return(1); }