public static long?UID(this GTANetworkAPI.Entity entity) { if (entity.HasSharedData("UID")) { return(entity.GetSharedData("UID")); } return(null); }
public static object GetValue(this GTANetworkAPI.Entity entity, string strKey) { if (entity.HasSharedData(strKey)) { return(entity.GetSharedData(strKey)); } return(null); }
public static bool AssignUID(this GTANetworkAPI.Entity entity, long uid) { if (entity.HasSharedData("UID")) { return(false); } entity.SetSharedData("UID", uid); return(true); }