示例#1
0
 public static bool AssignUID(this GTANetworkAPI.Entity entity, long uid)
 {
     if (entity.HasSharedData("UID"))
     {
         return(false);
     }
     entity.SetSharedData("UID", uid);
     return(true);
 }
示例#2
0
 public static bool SetValue(this GTANetworkAPI.Entity entity, string strKey, object value)
 {
     entity.SetSharedData(strKey, value);
     return(true);
 }