public static byte[] GetNGKey(string name, uint length) { uint hash = GTA5Hash.CalculateHash(name); uint keyidx = (hash + length + (101 - 40)) % 0x65; return(GTA5Constants.PC_NG_KEYS[keyidx]); }
public static uint GetKeyIndex(string name, uint length) { var hash = GTA5Hash.CalculateHash(name); return((hash + length + (101 - 40)) % 0x65); }